some improvements to advanced find

This commit is contained in:
rlx 2016-01-14 14:11:52 +05:30
commit b10a710a63
4 changed files with 48 additions and 43 deletions

View file

@ -478,7 +478,10 @@ oml.ui.mainMenu = function() {
(oml.$ui.titlesDialog || (
oml.$ui.titlesDialog = oml.ui.titlesDialog()
)).open();
} else if (id == 'advancedfind') {
oml.$ui.findDialog = oml.ui.findDialog().open();
} else if (id == 'download') {
// FIXME: what is this??
if (oml.user.ui.item) {
document.location.href = '/' + oml.user.ui.item + '/get/';
} else {
@ -568,7 +571,7 @@ oml.ui.mainMenu = function() {
oml.$ui.findInput.focusInput(true);
});
} else {
oml.$ui.filterDialog = oml.ui.filterDialog().open();
oml.$ui.findDialog = oml.ui.findDialog().open();
}
}
},
@ -578,7 +581,9 @@ oml.ui.mainMenu = function() {
}
},
key_control_shift_f: function() {
Ox.print('FIXME: NOT IMPLEMENTED')
if (!oml.hasDialogOrScreen()) {
oml.$ui.findDialog = oml.ui.findDialog().open();
}
},
key_control_shift_w: function() {
if (!oml.hasDialogOrScreen()) {