1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 03:35:57 +00:00

do not include keyboard help files into index and prefs.php

This commit is contained in:
Andrew Dolgov
2011-12-14 15:51:27 +04:00
parent 07391e36b8
commit 66be620a87
8 changed files with 28 additions and 29 deletions

View File

@@ -634,15 +634,6 @@ function explainError(code) {
return displayDlg("explainError", code);
}
function displayHelpInfobox(topic_id) {
var url = "backend.php?op=backend&method=help&tid=" + param_escape(topic_id);
window.open(url, "ttrss_help",
"status=0,toolbar=0,location=0,width=450,height=500,scrollbars=1,menubar=0");
}
function loading_set_progress(p) {
try {
loading_progress += p;

View File

@@ -1001,12 +1001,7 @@ function pref_hotkey_handler(e) {
if (!hotkey_prefix) {
if ((keycode == 191 || keychar == '?') && shift_key) { // ?
if (!Element.visible("hotkey_help_overlay")) {
//Element.show("hotkey_help_overlay");
Effect.Appear("hotkey_help_overlay", {duration : 0.3, to: 0.9});
} else {
Element.hide("hotkey_help_overlay");
}
showHelp();
return false;
}
@@ -1919,3 +1914,16 @@ function editSelectedInstance() {
editInstance(rows[0]);
}
function showHelp() {
try {
new Ajax.Request("backend.php", {
parameters: "?op=backend&method=help&topic=prefs",
onComplete: function(transport) {
$("hotkey_help_overlay").innerHTML = transport.responseText;
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
} });
} catch (e) {
exception_error("showHelp", e);
}
}

View File

@@ -428,8 +428,12 @@ function quickMenuGo(opid) {
}
if (opid == "qmcHKhelp") {
//Element.show("hotkey_help_overlay");
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
new Ajax.Request("backend.php", {
parameters: "?op=backend&method=help&topic=main",
onComplete: function(transport) {
$("hotkey_help_overlay").innerHTML = transport.responseText;
Effect.Appear("hotkey_help_overlay", {duration : 0.3});
} });
}
if (opid == "qmcAbout") {