update the clipboard after trying to paste asset
This commit is contained in:
parent
089d4f3792
commit
2ed21e8c7d
1 changed files with 5 additions and 0 deletions
|
|
@ -271,6 +271,11 @@ WebGUI.Admin.prototype.addPasteHandler
|
|||
= function ( elem, assetId ) {
|
||||
var self = this;
|
||||
YAHOO.util.Event.on( elem, "click", function(){
|
||||
var updateAfterPaste = function(){
|
||||
this.requestUpdateClipboard();
|
||||
this.afterNavigate.unsubscribe( updateAfterPaste );
|
||||
};
|
||||
self.afterNavigate.subscribe(updateAfterPaste, self );
|
||||
self.pasteAsset( assetId );
|
||||
}, self );
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue