only download one doc

This commit is contained in:
j 2016-01-07 11:36:08 +05:30
parent ffd615238e
commit a04b81444b
1 changed files with 5 additions and 1 deletions

View File

@ -467,7 +467,11 @@ oml.ui.mainMenu = function() {
oml.$ui.titlesDialog = oml.ui.titlesDialog()
)).open();
} else if (id == 'download') {
document.location.href = '/' + oml.user.ui.item + '/get/';
if (oml.user.ui.item) {
document.location.href = '/' + oml.user.ui.item + '/get/';
} else {
Ox.print('no way to download multiple right now');
}
} else {
Ox.print('MAIN MENU DOES NOT YET HANDLE', id);
}