comparison admin.js @ 977:a1da651a2e45

Add compo notes field.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Nov 2014 13:08:17 +0200
parents 054b612df423
children 0a8cb8f9f555
comparison
equal deleted inserted replaced
976:b0a8cb63334e 977:a1da651a2e45
359 // 359 //
360 // Compo management 360 // Compo management
361 // 361 //
362 function addCompo() 362 function addCompo()
363 { 363 {
364 var args = jsMakePostArgs({"name":1, "description":1}, "nc", ""); 364 var args = jsMakePostArgs({"name":1, "description":1, "notes":1}, "nc", "");
365 365
366 var msuccess = function(txt) 366 var msuccess = function(txt)
367 { 367 {
368 setTimeout("refreshDispatchCC('Compos');", 50); 368 setTimeout("refreshDispatchCC('Compos');", 50);
369 } 369 }
385 } 385 }
386 386
387 387
388 function updateCompo(id) 388 function updateCompo(id)
389 { 389 {
390 var args = jsMakePostArgs({"name":1, "description":1, "visible":3, "voting":3, "show_authors":3, "cpath":1, "preview_type":4}, "co", id, true); 390 var args = jsMakePostArgs({"name":1, "description":1, "notes":1, "visible":3, "voting":3, "show_authors":3, "cpath":1, "preview_type":4}, "co", id, true);
391 391
392 var msuccess = function(txt) 392 var msuccess = function(txt)
393 { 393 {
394 jsRefreshItems("compo"+id, "compo", "&id="+id); 394 jsRefreshItems("compo"+id, "compo", "&id="+id);
395 } 395 }