From 9befd5c4b279c2952338e922f024deb48e7cdfcb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 6 Oct 2014 10:35:38 +0000 Subject: [PATCH] dont paste empty clipboard --- static/js/editPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/editPanel.js b/static/js/editPanel.js index 29d166d19..b5a01f215 100644 --- a/static/js/editPanel.js +++ b/static/js/editPanel.js @@ -252,7 +252,7 @@ pandora.ui.editPanel = function(isEmbed) { }, paste: function() { 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('sortClips'); updateClips(edit.clips.map(function(clip) {