in main menu, bind to history events
This commit is contained in:
parent
010e15b6b6
commit
8f5abd2cc1
2 changed files with 14 additions and 7 deletions
|
|
@ -320,7 +320,6 @@ pandora.createLinks = function($element) {
|
|||
targets: targets,
|
||||
text: text
|
||||
});
|
||||
pandora.$ui.mainMenu.replaceItemMenu();
|
||||
callback(result);
|
||||
}
|
||||
};
|
||||
|
|
@ -328,7 +327,6 @@ pandora.createLinks = function($element) {
|
|||
pandora.redoHistory = function(callback) {
|
||||
var object = pandora.history.redo();
|
||||
if (object) {
|
||||
pandora.$ui.mainMenu.replaceItemMenu();
|
||||
if (object.action == 'copy' || object.action == 'paste') {
|
||||
addItems(object.items[0], object.targets[0], done);
|
||||
} else if (object.action == 'cut' || object.action == 'delete') {
|
||||
|
|
@ -347,7 +345,6 @@ pandora.createLinks = function($element) {
|
|||
pandora.undoHistory = function(callback) {
|
||||
var object = pandora.history.undo();
|
||||
if (object) {
|
||||
pandora.$ui.mainMenu.replaceItemMenu();
|
||||
if (object.action == 'copy' || object.action == 'paste') {
|
||||
removeItems(object.items[0], object.targets[0], done);
|
||||
} else if (object.action == 'cut' || object.action == 'delete') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue