close infobox on label edit cancel

This commit is contained in:
Andrew Dolgov 2006-05-22 09:03:25 +01:00
parent 9cd30721df
commit 50bad812d3
1 changed files with 5 additions and 2 deletions

View File

@ -684,6 +684,8 @@ function labelEditCancel() {
// notify("Operation cancelled."); // notify("Operation cancelled.");
closeInfoBox();
xmlhttp.open("GET", "backend.php?op=pref-labels", true); xmlhttp.open("GET", "backend.php?op=pref-labels", true);
xmlhttp.onreadystatechange=labellist_callback; xmlhttp.onreadystatechange=labellist_callback;
xmlhttp.send(null); xmlhttp.send(null);
@ -736,6 +738,8 @@ function labelEditSave() {
return; return;
} }
closeInfoBox();
notify("Saving label..."); notify("Saving label...");
active_label = false; active_label = false;
@ -743,7 +747,6 @@ function labelEditSave() {
query = Form.serialize("label_edit_form"); query = Form.serialize("label_edit_form");
xmlhttp.open("GET", "backend.php?" + query, true); xmlhttp.open("GET", "backend.php?" + query, true);
xmlhttp.onreadystatechange=labellist_callback; xmlhttp.onreadystatechange=labellist_callback;
xmlhttp.send(null); xmlhttp.send(null);