editFeedDlg: fix hotkey disabling bug

This commit is contained in:
Andrew Dolgov 2008-02-20 13:45:57 +01:00
parent 0b6cffa868
commit c67d2990c7
2 changed files with 7 additions and 4 deletions

View File

@ -209,7 +209,10 @@ function hotkey_handler(e) {
}
if (!hotkeys_enabled) return;
if (!hotkeys_enabled) {
debug("hotkeys disabled");
return;
}
if (window.event) {
keycode = window.event.keyCode;

View File

@ -634,8 +634,6 @@ function catchupCurrentFeed() {
function editFeedDlg(feed) {
try {
disableHotkeys();
if (!feed) {
alert(__("Please select some feed first."));
return;
@ -654,6 +652,8 @@ function editFeedDlg(feed) {
query = "backend.php?op=pref-labels&subop=edit&id=" + param_escape(-feed-11);
}
disableHotkeys();
new Ajax.Request(query, {
onComplete: function(transport) {
infobox_callback2(transport);