Mercurial > hg > fapweb
diff admin.js @ 860:bb4a6967ccdd
Keep edit state after file upload in updateEntry().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Nov 2014 10:30:39 +0200 |
parents | 70a8d52a8d00 |
children | 80f6f31d3711 |
line wrap: on
line diff
--- a/admin.js Wed Nov 26 10:29:54 2014 +0200 +++ b/admin.js Wed Nov 26 10:30:39 2014 +0200 @@ -445,7 +445,7 @@ } -function updateEntry(cid, id) +function updateEntry(cid, id, edit) { var args = jsMakePostArgs({"name":1, "author":1, "filename":1, "info":1, "notes":1, "compo_id":4, "evalue":2}, "en", id, true); var has_id = "compo_id" in lastPostArgs; @@ -471,7 +471,7 @@ var mcb_ok = function(data) { - jsSendPOSTRequest("action=update&type=entry&id="+id+"&"+args, msuccess); + jsSendPOSTRequest("action=update&type=entry&id="+id+"&edit="+edit+"&"+args, msuccess); } var mcb_cancel = function(data)