clarify reset label colors function
This commit is contained in:
parent
d2d7535324
commit
f695cdb220
8
prefs.js
8
prefs.js
|
@ -1398,10 +1398,10 @@ function labelColorReset() {
|
||||||
try {
|
try {
|
||||||
var labels = getSelectedLabels();
|
var labels = getSelectedLabels();
|
||||||
|
|
||||||
var ok = confirm(__("Reset label colors to default?"));
|
if (labels.length > 0) {
|
||||||
|
var ok = confirm(__("Reset selected labels to default colors?"));
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|
||||||
var query = "?op=pref-labels&subop=color-reset&ids="+
|
var query = "?op=pref-labels&subop=color-reset&ids="+
|
||||||
param_escape(labels.toString());
|
param_escape(labels.toString());
|
||||||
|
|
||||||
|
@ -1412,6 +1412,10 @@ function labelColorReset() {
|
||||||
} });
|
} });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
alert(__("No labels are selected."));
|
||||||
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("labelColorReset", e);
|
exception_error("labelColorReset", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue