changeset 346:c922e5200c55

Rename makePostArgs() to jsMakePostArgs().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Dec 2013 05:02:48 +0200
parents 7bb36c015926
children 1ef6cd391590
files admin.php majax.php
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/admin.php	Mon Dec 02 04:27:17 2013 +0200
+++ b/admin.php	Mon Dec 02 05:02:48 2013 +0200
@@ -61,7 +61,7 @@
   "\n".
   "function updateSettings()\n".
   "{\n".
-  "  var args = makePostArgs({".implode(",", $args)."}, \"st\", \"\");\n".
+  "  var args = jsMakePostArgs({".implode(",", $args)."}, \"st\", \"\");\n".
   "  jsSendPOSTRequest(\"action=update&type=settings&\"+args);\n".
   "  return false;\n".
   "}\n";
@@ -204,7 +204,7 @@
 
 function addNews()
 {
-  var args = makePostArgs({"title":1,"text":1,"author":1}, "nn", "");
+  var args = jsMakePostArgs({"title":1,"text":1,"author":1}, "nn", "");
 
   var msuccess = function(txt)
   {
@@ -227,7 +227,7 @@
 
 function updateNews(id)
 {
-  var args = makePostArgs({"title":1,"text":1,"author":1}, "ne", id);
+  var args = jsMakePostArgs({"title":1,"text":1,"author":1}, "ne", id);
 
   var msuccess = function(txt)
   {
@@ -241,7 +241,7 @@
 
 function addAttendee()
 {
-  var args = makePostArgs({"name":1,"groups":1,"oneliner":1,"email":1}, "ne", "x");
+  var args = jsMakePostArgs({"name":1,"groups":1,"oneliner":1,"email":1}, "ne", "x");
 
   var msuccess = function(txt)
   {
@@ -263,7 +263,7 @@
 
 function updateAttendee(id)
 {
-  var args = makePostArgs({"name":1,"groups":1,"oneliner":1,"email":1}, "at", id);
+  var args = jsMakePostArgs({"name":1,"groups":1,"oneliner":1,"email":1}, "at", id);
 
   var msuccess = function(txt)
   {
@@ -314,7 +314,7 @@
 
 function addCompo()
 {
-  var args = makePostArgs({"name":1, "description":1}, "nc", "");
+  var args = jsMakePostArgs({"name":1, "description":1}, "nc", "");
 
   var msuccess = function(txt)
   {
@@ -329,7 +329,7 @@
 
 function updateCompo(id)
 {
-  var args = makePostArgs({"name":1, "description":1, "visible":3, "voting":3, "showAuthors":3}, "co", id);
+  var args = jsMakePostArgs({"name":1, "description":1, "visible":3, "voting":3, "showAuthors":3}, "co", id);
 
   var msuccess = function(txt)
   {
@@ -343,7 +343,7 @@
 
 function addEntry(id)
 {
-  var args = makePostArgs({"name":1, "author":1, "filename":1, "info":1}, "ne", id);
+  var args = jsMakePostArgs({"name":1, "author":1, "filename":1, "info":1}, "ne", id);
 
   var msuccess = function(txt)
   {
@@ -359,7 +359,7 @@
 
 function updateEntry(cid, id)
 {
-  var args = makePostArgs({"name":1, "author":1, "filename":1, "info":1, "compo_id":2}, "en", id);
+  var args = jsMakePostArgs({"name":1, "author":1, "filename":1, "info":1, "compo_id":2}, "en", id);
   var compo_id = lastPostArgs["compo_id"];
 
   var msuccess = function(txt)
@@ -413,14 +413,14 @@
 
 function voteKeySetActive(id)
 {
-  var args = makePostArgs({"active":3}, "vk", id);
+  var args = jsMakePostArgs({"active":3}, "vk", id);
   voteKeyRefresh(id, "active", args);
 }
 
 
 function voteKeyAssign(id, mode)
 {
-  var args = makePostArgs({"key_id":2}, "vk", id);
+  var args = jsMakePostArgs({"key_id":2}, "vk", id);
 
   if ((mode == 0 && confirmBox("Are you sure you want to clear vote key assign #"+id+"?")) || mode != 0)
   {
--- a/majax.php	Mon Dec 02 04:27:17 2013 +0200
+++ b/majax.php	Mon Dec 02 05:02:48 2013 +0200
@@ -115,7 +115,7 @@
 // for validity can be performed (e.g. field empty or not)
 //
 var lastPostArgs = Object();
-function makePostArgs(fields, fprefix, fsuffix)
+function jsMakePostArgs(fields, fprefix, fsuffix)
 {
   var res = [];
   lastPostArgs = Object();