forked from 0x2620/pandora
update mainMenu
This commit is contained in:
parent
2582100c9e
commit
6379bb373b
1 changed files with 3 additions and 3 deletions
|
@ -426,9 +426,9 @@ pandora.ui.mainMenu = function() {
|
|||
} else if (data.id == 'paste') {
|
||||
fromMenu = true;
|
||||
var items = pandora.clipboard.paste();
|
||||
pandora.doHistory('paste', items, ui._list, function() {
|
||||
pandora.UI.set({listSelection: items});
|
||||
pandora.reloadList();
|
||||
pandora.doHistory('paste', items, ui.section == 'items' ? ui._list : ui.edit, function() {
|
||||
pandora.UI.set(ui.section == 'items' ? 'listSelection' : 'editSelection', items);
|
||||
ui.section == 'items' && pandora.reloadList();
|
||||
});
|
||||
} else if (data.id == 'clearclipboard') {
|
||||
pandora.clipboard.clear();
|
||||
|
|
Loading…
Reference in a new issue