mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 23:41:30 +00:00
js: code cleanup
This commit is contained in:
39
functions.js
39
functions.js
@@ -419,21 +419,6 @@ function displayDlg(id, param, callback) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function infobox_submit_callback2(transport) {
|
|
||||||
closeInfoBox();
|
|
||||||
|
|
||||||
try {
|
|
||||||
// called from prefs, reload tab
|
|
||||||
if (typeof active_tab != 'undefined' && active_tab) {
|
|
||||||
selectTab(active_tab, false);
|
|
||||||
}
|
|
||||||
} catch (e) { }
|
|
||||||
|
|
||||||
if (transport.responseText) {
|
|
||||||
notify_info(transport.responseText);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function infobox_callback2(transport) {
|
function infobox_callback2(transport) {
|
||||||
try {
|
try {
|
||||||
var dialog = false;
|
var dialog = false;
|
||||||
@@ -680,24 +665,6 @@ function remove_splash() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* function getSelectedFeedsFromBrowser() {
|
|
||||||
|
|
||||||
var list = $$("#browseFeedList li[id*=FBROW]");
|
|
||||||
|
|
||||||
var selected = new Array();
|
|
||||||
|
|
||||||
list.each(function(child) {
|
|
||||||
var id = child.id.replace("FBROW-", "");
|
|
||||||
|
|
||||||
if (child.hasClassName('Selected')) {
|
|
||||||
selected.push(id);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
return selected;
|
|
||||||
} */
|
|
||||||
|
|
||||||
|
|
||||||
function transport_error_check(transport) {
|
function transport_error_check(transport) {
|
||||||
try {
|
try {
|
||||||
if (transport.responseXML) {
|
if (transport.responseXML) {
|
||||||
@@ -862,7 +829,7 @@ function addLabel(select, callback) {
|
|||||||
if (callback) {
|
if (callback) {
|
||||||
callback(transport);
|
callback(transport);
|
||||||
} else if (inPreferences()) {
|
} else if (inPreferences()) {
|
||||||
infobox_submit_callback2(transport);
|
updateLabelList();
|
||||||
} else {
|
} else {
|
||||||
updateFeedList();
|
updateFeedList();
|
||||||
}
|
}
|
||||||
@@ -917,11 +884,7 @@ function quickAddFeed() {
|
|||||||
dialog.hide();
|
dialog.hide();
|
||||||
notify_info(__("Subscribed to %s").replace("%s", feed_url));
|
notify_info(__("Subscribed to %s").replace("%s", feed_url));
|
||||||
|
|
||||||
if (inPreferences()) {
|
|
||||||
updateFeedList();
|
updateFeedList();
|
||||||
} else {
|
|
||||||
setTimeout('updateFeedList(false, false)', 50);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
alert(__("Specified URL seems to be invalid."));
|
alert(__("Specified URL seems to be invalid."));
|
||||||
|
|||||||
@@ -660,7 +660,6 @@ function hotkey_handler(e) {
|
|||||||
Element.hide("hotkey_help_overlay");
|
Element.hide("hotkey_help_overlay");
|
||||||
}
|
}
|
||||||
hotkey_prefix = false;
|
hotkey_prefix = false;
|
||||||
closeInfoBox();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keycode == 16) return; // ignore lone shift
|
if (keycode == 16) return; // ignore lone shift
|
||||||
|
|||||||
Reference in New Issue
Block a user