|
|
@ -335,42 +335,35 @@ function init_second_stage() {
|
|
|
|
|
|
|
|
|
|
|
|
function quickMenuGo(opid) {
|
|
|
|
function quickMenuGo(opid) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (opid == "qmcPrefs") {
|
|
|
|
switch (opid) {
|
|
|
|
|
|
|
|
case "qmcPrefs":
|
|
|
|
gotoPreferences();
|
|
|
|
gotoPreferences();
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "qmcLogout":
|
|
|
|
if (opid == "qmcTagCloud") {
|
|
|
|
gotoLogout();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "qmcTagCloud":
|
|
|
|
displayDlg("printTagCloud");
|
|
|
|
displayDlg("printTagCloud");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "qmcTagSelect":
|
|
|
|
if (opid == "qmcTagSelect") {
|
|
|
|
|
|
|
|
displayDlg("printTagSelect");
|
|
|
|
displayDlg("printTagSelect");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "qmcSearch":
|
|
|
|
if (opid == "qmcSearch") {
|
|
|
|
|
|
|
|
search();
|
|
|
|
search();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcAddFeed":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcAddFeed") {
|
|
|
|
|
|
|
|
quickAddFeed();
|
|
|
|
quickAddFeed();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcDigest":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcDigest") {
|
|
|
|
|
|
|
|
window.location.href = "backend.php?op=digest";
|
|
|
|
window.location.href = "backend.php?op=digest";
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcEditFeed":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcEditFeed") {
|
|
|
|
|
|
|
|
if (activeFeedIsCat())
|
|
|
|
if (activeFeedIsCat())
|
|
|
|
alert(__("You can't edit this kind of feed."));
|
|
|
|
alert(__("You can't edit this kind of feed."));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
editFeed(getActiveFeedId());
|
|
|
|
editFeed(getActiveFeedId());
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcRemoveFeed":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcRemoveFeed") {
|
|
|
|
|
|
|
|
var actid = getActiveFeedId();
|
|
|
|
var actid = getActiveFeedId();
|
|
|
|
|
|
|
|
|
|
|
|
if (activeFeedIsCat()) {
|
|
|
|
if (activeFeedIsCat()) {
|
|
|
@ -390,46 +383,34 @@ function quickMenuGo(opid) {
|
|
|
|
if (confirm(pr)) {
|
|
|
|
if (confirm(pr)) {
|
|
|
|
unsubscribeFeed(actid);
|
|
|
|
unsubscribeFeed(actid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
return;
|
|
|
|
case "qmcCatchupAll":
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcCatchupAll") {
|
|
|
|
|
|
|
|
catchupAllFeeds();
|
|
|
|
catchupAllFeeds();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcShowOnlyUnread":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcShowOnlyUnread") {
|
|
|
|
|
|
|
|
toggleDispRead();
|
|
|
|
toggleDispRead();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcAddFilter":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcAddFilter") {
|
|
|
|
|
|
|
|
quickAddFilter();
|
|
|
|
quickAddFilter();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcAddLabel":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcAddLabel") {
|
|
|
|
|
|
|
|
addLabel();
|
|
|
|
addLabel();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcRescoreFeed":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcRescoreFeed") {
|
|
|
|
|
|
|
|
rescoreCurrentFeed();
|
|
|
|
rescoreCurrentFeed();
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcToggleWidescreen":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcToggleWidescreen") {
|
|
|
|
|
|
|
|
if (!isCdmMode()) {
|
|
|
|
if (!isCdmMode()) {
|
|
|
|
_widescreen_mode = !_widescreen_mode;
|
|
|
|
_widescreen_mode = !_widescreen_mode;
|
|
|
|
|
|
|
|
|
|
|
|
switchPanelMode(_widescreen_mode);
|
|
|
|
switchPanelMode(_widescreen_mode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case "qmcHKhelp":
|
|
|
|
|
|
|
|
|
|
|
|
if (opid == "qmcHKhelp") {
|
|
|
|
|
|
|
|
helpDialog("main");
|
|
|
|
helpDialog("main");
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
console.log("quickMenuGo: unknown action: " + opid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
@ -469,13 +450,10 @@ function parse_runtime_info(data) {
|
|
|
|
// console.log("RI: " + k + " => " + v);
|
|
|
|
// console.log("RI: " + k + " => " + v);
|
|
|
|
|
|
|
|
|
|
|
|
if (k == "new_version_available") {
|
|
|
|
if (k == "new_version_available") {
|
|
|
|
var icon = $("newVersionIcon");
|
|
|
|
|
|
|
|
if (icon) {
|
|
|
|
|
|
|
|
if (v == "1") {
|
|
|
|
if (v == "1") {
|
|
|
|
icon.style.display = "inline";
|
|
|
|
Element.show(dijit.byId("newVersionIcon").domNode);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
icon.style.display = "none";
|
|
|
|
Element.hide(dijit.byId("newVersionIcon").domNode);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -908,15 +886,15 @@ function handle_rpc_json(transport, scheduled_call) {
|
|
|
|
|
|
|
|
|
|
|
|
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
|
|
|
|
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);
|
|
|
|
|
|
|
|
|
|
|
|
Element.hide("net-alert");
|
|
|
|
Element.hide(dijit.byId("net-alert").domNode);
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//notify_error("Error communicating with server.");
|
|
|
|
//notify_error("Error communicating with server.");
|
|
|
|
Element.show("net-alert");
|
|
|
|
Element.show(dijit.byId("net-alert").domNode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
Element.show("net-alert");
|
|
|
|
Element.show(dijit.byId("net-alert").domNode);
|
|
|
|
//notify_error("Error communicating with server.");
|
|
|
|
//notify_error("Error communicating with server.");
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
//exception_error("handle_rpc_json", e, transport);
|
|
|
|
//exception_error("handle_rpc_json", e, transport);
|
|
|
|