dont paste empty clipboard

This commit is contained in:
j 2014-10-06 10:35:38 +00:00
parent ce8803d100
commit 9befd5c4b2

View file

@ -252,7 +252,7 @@ pandora.ui.editPanel = function(isEmbed) {
}, },
paste: function() { paste: function() {
var clips = pandora.clipboard.paste(); var clips = pandora.clipboard.paste();
pandora.doHistory('paste', clips, ui.edit, function(result) { clips.length && pandora.doHistory('paste', clips, ui.edit, function(result) {
Ox.Request.clearCache('getEdit'); Ox.Request.clearCache('getEdit');
Ox.Request.clearCache('sortClips'); Ox.Request.clearCache('sortClips');
updateClips(edit.clips.map(function(clip) { updateClips(edit.clips.map(function(clip) {