|
|
@ -14,6 +14,8 @@ var mouse_is_down = false;
|
|
|
|
var db = false;
|
|
|
|
var db = false;
|
|
|
|
var store = false;
|
|
|
|
var store = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var seq = "";
|
|
|
|
|
|
|
|
|
|
|
|
function feedlist_callback2(transport) {
|
|
|
|
function feedlist_callback2(transport) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -325,10 +327,12 @@ function addUser() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function editUser(id) {
|
|
|
|
function editUser(id, event) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!event || !event.ctrlKey) {
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
@ -346,58 +350,81 @@ function editUser(id) {
|
|
|
|
document.forms['user_edit_form'].login.focus();
|
|
|
|
document.forms['user_edit_form'].login.focus();
|
|
|
|
} });
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (event.ctrlKey) {
|
|
|
|
|
|
|
|
var cb = $('UMCHK-' + id);
|
|
|
|
|
|
|
|
cb.checked = !cb.checked;
|
|
|
|
|
|
|
|
toggleSelectRow(cb);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("editUser", e);
|
|
|
|
exception_error("editUser", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function editFilter(id) {
|
|
|
|
function editFilter(id, event) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
if (!event || !event.ctrlKey) {
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false);
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
selectTableRowById('FILRR-'+id, 'FICHK-'+id, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=pref-filters&subop=edit&id=" +
|
|
|
|
selectTableRowsByIdPrefix('prefFilterList', 'FILRR-', 'FICHK-', false);
|
|
|
|
param_escape(id);
|
|
|
|
selectTableRowById('FILRR-'+id, 'FICHK-'+id, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=pref-filters&subop=edit&id=" +
|
|
|
|
|
|
|
|
param_escape(id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
infobox_callback2(transport);
|
|
|
|
|
|
|
|
document.forms['filter_edit_form'].reg_exp.focus();
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
} else if (event.ctrlKey) {
|
|
|
|
|
|
|
|
var cb = $('FICHK-' + id);
|
|
|
|
|
|
|
|
cb.checked = !cb.checked;
|
|
|
|
|
|
|
|
toggleSelectRow(cb);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
infobox_callback2(transport);
|
|
|
|
|
|
|
|
document.forms['filter_edit_form'].reg_exp.focus();
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("editFilter", e);
|
|
|
|
exception_error("editFilter", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function editFeed(feed) {
|
|
|
|
function editFeed(feed, event) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
disableHotkeys();
|
|
|
|
if (event && !event.ctrlKey) {
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
disableHotkeys();
|
|
|
|
|
|
|
|
|
|
|
|
// clean selection from all rows & select row being edited
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
|
|
|
|
|
|
|
|
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=pref-feeds&subop=editfeed&id=" +
|
|
|
|
// clean selection from all rows & select row being edited
|
|
|
|
param_escape(feed);
|
|
|
|
selectTableRowsByIdPrefix('prefFeedList', 'FEEDR-', 'FRCHK-', false);
|
|
|
|
|
|
|
|
selectTableRowById('FEEDR-'+feed, 'FRCHK-'+feed, true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=pref-feeds&subop=editfeed&id=" +
|
|
|
|
|
|
|
|
param_escape(feed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
infobox_callback2(transport);
|
|
|
|
|
|
|
|
document.forms["edit_feed_form"].title.focus();
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (event.ctrlKey) {
|
|
|
|
|
|
|
|
var cb = $('FRCHK-' + feed);
|
|
|
|
|
|
|
|
cb.checked = !cb.checked;
|
|
|
|
|
|
|
|
toggleSelectRow(cb);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
infobox_callback2(transport);
|
|
|
|
|
|
|
|
document.forms["edit_feed_form"].title.focus();
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
exception_error("editFeed", e);
|
|
|
|
exception_error("editFeed", e);
|
|
|
@ -1263,39 +1290,6 @@ function selectPrefRows(kind, select) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function toggleSelectPrefRow(sender, kind) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
toggleSelectRow(sender);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (kind) {
|
|
|
|
|
|
|
|
var opbarid = false;
|
|
|
|
|
|
|
|
var nsel = -1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (kind == "feed") {
|
|
|
|
|
|
|
|
opbarid = "feedOpToolbar";
|
|
|
|
|
|
|
|
nsel = getSelectedFeeds();
|
|
|
|
|
|
|
|
} else if (kind == "fcat") {
|
|
|
|
|
|
|
|
opbarid = "catOpToolbar";
|
|
|
|
|
|
|
|
nsel = getSelectedFeedCats();
|
|
|
|
|
|
|
|
} else if (kind == "filter") {
|
|
|
|
|
|
|
|
opbarid = "filterOpToolbar";
|
|
|
|
|
|
|
|
nsel = getSelectedFilters();
|
|
|
|
|
|
|
|
} else if (kind == "label") {
|
|
|
|
|
|
|
|
opbarid = "labelOpToolbar";
|
|
|
|
|
|
|
|
nsel = getSelectedLabels();
|
|
|
|
|
|
|
|
} else if (kind == "user") {
|
|
|
|
|
|
|
|
opbarid = "userOpToolbar";
|
|
|
|
|
|
|
|
nsel = getSelectedUsers();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function toggleSelectFBListRow(sender) {
|
|
|
|
|
|
|
|
toggleSelectListRow(sender);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var seq = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function pref_hotkey_handler(e) {
|
|
|
|
function pref_hotkey_handler(e) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -1794,37 +1788,6 @@ function removeFilter(id, title) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*function unsubscribeFeed(id, title) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var msg = __("Unsubscribe from %s?").replace("%s", title);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ok = confirm(msg);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ok) {
|
|
|
|
|
|
|
|
closeInfoBox();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
notify_progress("Removing feed...");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var query = "?op=pref-feeds&subop=remove&ids="+
|
|
|
|
|
|
|
|
param_escape(id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
feedlist_callback2(transport);
|
|
|
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
exception_error("unsubscribeFeed", e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function feedsEditSave() {
|
|
|
|
function feedsEditSave() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|