# HG changeset patch # User Matti Hamalainen # Date 1448035990 -7200 # Node ID 178ed843b6c2bb0a969e4b2344c1a7b28b0e1d06 # Parent 8a50535a4ff1ad63a057725d4b873fd77514d264 No need for notes field in compo addition. diff -r 8a50535a4ff1 -r 178ed843b6c2 admajax.php --- 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", "", "")."
\n". "Description:". " ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."
\n". - "Notes:". - " ".stGetFormTextArea(5, 60, "", "ncnotes", "", "")."
\n". " ".stGetFormSubmitInput("nccompo", "Add compo")."\n". " ".stGetFormButtonInput("", "", "", "Clear", "this.form.reset()")."\n". "\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."); } diff -r 8a50535a4ff1 -r 178ed843b6c2 admin.js --- 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) {