changeset 1048:178ed843b6c2

No need for notes field in compo addition.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 20 Nov 2015 18:13:10 +0200
parents 8a50535a4ff1
children 03f4b70a2ce8
files admajax.php admin.js
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Fri Nov 20 18:04:03 2015 +0200
+++ b/admajax.php	Fri Nov 20 18:13:10 2015 +0200
@@ -1509,8 +1509,6 @@
           "  ".stGetFormTextInput(64, SET_LEN_COMPO_NAME, "", "ncname", "", "")."<br />\n".
           "<b>Description:</b>".
           "  ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."<br />\n".
-          "<b>Notes:</b>".
-          "  ".stGetFormTextArea(5, 60, "", "ncnotes", "", "")."<br />\n".
           "  ".stGetFormSubmitInput("nccompo", "Add compo")."\n".
           "  ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n".
           "</form>\n".
@@ -1746,8 +1744,8 @@
     if ($type == "compo" && stValidateRequestCompoData(FALSE, 0))
     {
       $sql = stPrepareSQL(
-        "INSERT INTO compos (name,description,notes,visible,voting,show_authors,preview_type) VALUES (%S,%Q,%Q,0,0,0,0)",
-        "name", "description", "notes");
+        "INSERT INTO compos (name,description,visible,voting,show_authors,preview_type) VALUES (%S,%Q,0,0,0,0)",
+        "name", "description");
 
       stExecSQLCond($sql, "OK, compo added.");
     }
--- a/admin.js	Fri Nov 20 18:04:03 2015 +0200
+++ b/admin.js	Fri Nov 20 18:13:10 2015 +0200
@@ -361,7 +361,7 @@
 //
 function addCompo()
 {
-  var args = jsMakePostArgs({"name":1, "description":1, "notes":1}, "nc", "");
+  var args = jsMakePostArgs({"name":1, "description":1}, "nc", "");
 
   var msuccess = function(txt)
   {