remove confirmation prompt from assign/remove label actions

This commit is contained in:
Andrew Dolgov 2009-01-21 18:12:07 +01:00
parent 49f4a7e9f0
commit 37843d7042
1 changed files with 6 additions and 6 deletions

View File

@ -858,9 +858,9 @@ function selectionRemoveLabel(id) {
return; return;
} }
var ok = confirm(__("Remove selected articles from label?")); // var ok = confirm(__("Remove selected articles from label?"));
if (ok) { // if (ok) {
var query = "backend.php?op=rpc&subop=removeFromLabel&ids=" + var query = "backend.php?op=rpc&subop=removeFromLabel&ids=" +
param_escape(ids.toString()) + "&lid=" + param_escape(id); param_escape(ids.toString()) + "&lid=" + param_escape(id);
@ -875,7 +875,7 @@ function selectionRemoveLabel(id) {
all_counters_callback2(transport); all_counters_callback2(transport);
} }); } });
} // }
} catch (e) { } catch (e) {
exception_error("selectionAssignLabel", e); exception_error("selectionAssignLabel", e);
@ -893,9 +893,9 @@ function selectionAssignLabel(id) {
return; return;
} }
var ok = confirm(__("Assign selected articles to label?")); // var ok = confirm(__("Assign selected articles to label?"));
if (ok) { // if (ok) {
cache_invalidate("F:" + (-11 - id)); cache_invalidate("F:" + (-11 - id));
@ -910,7 +910,7 @@ function selectionAssignLabel(id) {
all_counters_callback2(transport); all_counters_callback2(transport);
} }); } });
} // }
} catch (e) { } catch (e) {
exception_error("selectionAssignLabel", e); exception_error("selectionAssignLabel", e);