1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 05:25:56 +00:00

fix broken piggie

This commit is contained in:
Andrew Dolgov
2006-08-12 15:57:13 +01:00
parent 9e397d0f5a
commit d437c8cf56
5 changed files with 48 additions and 18 deletions

View File

@@ -151,8 +151,6 @@ function notify(msg, no_hide, is_err) {
function printLockingError() {
notify("Please wait until operation finishes");}
var seq = "";
function hotkey_handler(e) {
try {
@@ -172,11 +170,11 @@ function hotkey_handler(e) {
} else {
seq = seq + "" + keycode;
}
var m_ctx = getMainContext();
var f_ctx = getFeedsContext();
var h_ctx = getHeadlinesContext();
if (keycode == 82) { // r
return m_ctx.scheduleFeedUpdate(true);
}
@@ -216,16 +214,6 @@ function hotkey_handler(e) {
if (keycode == 80 || keycode == 38) { // p, up
return h_ctx.moveToPost('prev');
}
if (document.getElementById("piggie")) {
if (seq.match("807371717369")) {
seq = "";
localPiggieFunction(true);
} else {
localPiggieFunction(false);
}
}
if (typeof localHotkeyHandler != 'undefined') {