|
|
@ -316,6 +316,9 @@ function addLabel() {
|
|
|
|
|
|
|
|
|
|
|
|
var query = Form.serialize("label_edit_form");
|
|
|
|
var query = Form.serialize("label_edit_form");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// we can be called from some other tab
|
|
|
|
|
|
|
|
active_tab = "labelConfig";
|
|
|
|
|
|
|
|
|
|
|
|
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=add&" + query, true);
|
|
|
|
xmlhttp.open("GET", "backend.php?op=pref-labels&subop=add&" + query, true);
|
|
|
|
xmlhttp.onreadystatechange=infobox_submit_callback;
|
|
|
|
xmlhttp.onreadystatechange=infobox_submit_callback;
|
|
|
|
xmlhttp.send(null);
|
|
|
|
xmlhttp.send(null);
|
|
|
@ -404,6 +407,8 @@ function editLabel(id) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("label_create_btn").disabled = true;
|
|
|
|
document.getElementById("label_create_btn").disabled = true;
|
|
|
@ -427,6 +432,8 @@ function editUser(id) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false);
|
|
|
|
selectTableRowsByIdPrefix('prefUserList', 'UMRR-', 'UMCHK-', false);
|
|
|
@ -446,6 +453,8 @@ function editFilter(id) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("create_filter_btn").disabled = true;
|
|
|
|
document.getElementById("create_filter_btn").disabled = true;
|
|
|
@ -467,6 +476,8 @@ function editFeed(feed) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("subscribe_to_feed_btn").disabled = true;
|
|
|
|
document.getElementById("subscribe_to_feed_btn").disabled = true;
|
|
|
@ -496,6 +507,8 @@ function editFeedCat(cat) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
active_feed_cat = cat;
|
|
|
|
active_feed_cat = cat;
|
|
|
@ -1294,14 +1307,20 @@ function selectTab(id, noupdate, subop) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var tab = document.getElementById(active_tab + "Tab");
|
|
|
|
/* clean selection from all tabs */
|
|
|
|
|
|
|
|
|
|
|
|
if (tab) {
|
|
|
|
var tabs_holder = document.getElementById("prefTabs");
|
|
|
|
if (tab.className.match("Selected")) {
|
|
|
|
var tab = tabs_holder.firstChild;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (tab) {
|
|
|
|
|
|
|
|
if (tab.className && tab.className.match("prefsTabSelected")) {
|
|
|
|
tab.className = "prefsTab";
|
|
|
|
tab.className = "prefsTab";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tab = tab.nextSibling;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* mark new tab as selected */
|
|
|
|
|
|
|
|
|
|
|
|
tab = document.getElementById(id + "Tab");
|
|
|
|
tab = document.getElementById(id + "Tab");
|
|
|
|
|
|
|
|
|
|
|
|
if (tab) {
|
|
|
|
if (tab) {
|
|
|
@ -1683,6 +1702,12 @@ function pref_hotkey_handler(e) {
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 16) return; // ignore lone shift
|
|
|
|
if (keycode == 16) return; // ignore lone shift
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((keycode == 67 || keycode == 71) && !hotkey_prefix) {
|
|
|
|
|
|
|
|
hotkey_prefix = keycode;
|
|
|
|
|
|
|
|
debug("KP: PREFIX=" + keycode);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (Element.visible("hotkey_help_overlay")) {
|
|
|
|
if (Element.visible("hotkey_help_overlay")) {
|
|
|
|
Element.hide("hotkey_help_overlay");
|
|
|
|
Element.hide("hotkey_help_overlay");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1718,7 +1743,38 @@ function pref_hotkey_handler(e) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 49) { // 1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Prefix c */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hotkey_prefix == 67) { // c
|
|
|
|
|
|
|
|
hotkey_prefix = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 70) { // f
|
|
|
|
|
|
|
|
return displayDlg("quickAddFilter");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 83) { // s
|
|
|
|
|
|
|
|
return displayDlg("quickAddFeed");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 76) { // l
|
|
|
|
|
|
|
|
return displayDlg("quickAddLabel");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 85) { // u
|
|
|
|
|
|
|
|
// no-op
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Prefix g */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hotkey_prefix == 71) { // g
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hotkey_prefix = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (keycode == 49 && document.getElementById("genConfigTab")) { // 1
|
|
|
|
selectTab("genConfig");
|
|
|
|
selectTab("genConfig");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|