}
}
+function quickAddFeed() {
+ displayDlg('quickAddFeed', '',
+ function () {$('feed_url').focus();});
+}
+
+function quickAddFilter() {
+ displayDlg('quickAddFilter', '',
+ function () {document.forms['filter_add_form'].reg_exp.focus();});
+}
__('Search')."</button>
</div>";
- print "<button onclick=\"javascript:displayDlg('quickAddFeed')\">"
+ print "<button onclick=\"quickAddFeed()\">"
.__('Subscribe to feed')."</button> ";
- print "<button onclick=\"javascript:editSelectedFeed()\">".
+ print "<button onclick=\"editSelectedFeed()\">".
__('Edit feeds')."</button> ";
if (get_pref($link, 'ENABLE_FEED_CATS')) {
<img style='vertical-align : top;' src='".theme_image($link, "images/sign_quest.png")."'></a>
</div>";
- print "<button onclick=\"return displayDlg('quickAddFilter', false)\">".
+ print "<button onclick=\"return quickAddFilter()\">".
__('Create filter')."</button> ";
print "<button onclick=\"return editSelectedFilter()\">".
parameters: query,
onComplete: function(transport) {
infobox_callback2(transport);
+ document.forms["edit_feed_form"].title.focus();
} });
} catch (e) {
hotkey_prefix = false;
if (keycode == 70) { // f
- displayDlg("quickAddFilter");
+ quickAddFilter();
return false;
}
if (keycode == 83) { // s
- displayDlg("quickAddFeed");
+ quickAddFeed();
return false;
}
-/* if (keycode == 76) { // l
- displayDlg("quickAddLabel");
- return false;
- } */
-
if (keycode == 85) { // u
// no-op
}
}
if (opid == "qmcAddFeed") {
- displayDlg('quickAddFeed', '',
- function () {$('feed_url').focus();});
+ quickAddFeed();
return;
}
parameters: query,
onComplete: function(transport) {
infobox_callback2(transport);
+ document.forms["edit_feed_form"].title.focus();
} });
} catch (e) {
}
if (keycode == 83) { // s
- displayDlg('quickAddFeed', '',
- function () {$('feed_url').focus();});
-
+ quickAddFeed();
return false;
}