more input focusing improvements in popup dialogs
This commit is contained in:
parent
f2a648e1b2
commit
3393238de2
|
@ -2147,3 +2147,12 @@ function addLabel() {
|
|||
}
|
||||
}
|
||||
|
||||
function quickAddFeed() {
|
||||
displayDlg('quickAddFeed', '',
|
||||
function () {$('feed_url').focus();});
|
||||
}
|
||||
|
||||
function quickAddFilter() {
|
||||
displayDlg('quickAddFilter', '',
|
||||
function () {document.forms['filter_add_form'].reg_exp.focus();});
|
||||
}
|
||||
|
|
|
@ -1177,10 +1177,10 @@
|
|||
__('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')) {
|
||||
|
|
|
@ -311,7 +311,7 @@
|
|||
<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()\">".
|
||||
|
|
10
prefs.js
10
prefs.js
|
@ -400,6 +400,7 @@ function editFeed(feed) {
|
|||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
infobox_callback2(transport);
|
||||
document.forms["edit_feed_form"].title.focus();
|
||||
} });
|
||||
|
||||
} catch (e) {
|
||||
|
@ -1446,20 +1447,15 @@ function pref_hotkey_handler(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
|
||||
}
|
||||
|
|
|
@ -534,8 +534,7 @@ function quickMenuGo(opid) {
|
|||
}
|
||||
|
||||
if (opid == "qmcAddFeed") {
|
||||
displayDlg('quickAddFeed', '',
|
||||
function () {$('feed_url').focus();});
|
||||
quickAddFeed();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -791,6 +790,7 @@ function editFeedDlg(feed) {
|
|||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
infobox_callback2(transport);
|
||||
document.forms["edit_feed_form"].title.focus();
|
||||
} });
|
||||
|
||||
} catch (e) {
|
||||
|
@ -1236,9 +1236,7 @@ function hotkey_handler(e) {
|
|||
}
|
||||
|
||||
if (keycode == 83) { // s
|
||||
displayDlg('quickAddFeed', '',
|
||||
function () {$('feed_url').focus();});
|
||||
|
||||
quickAddFeed();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue