editor: handle copy events

This commit is contained in:
rolux 2013-07-13 20:59:28 +00:00 committed by j
parent d636f63f65
commit 8fa2172c8b

View file

@ -108,6 +108,16 @@ pandora.ui.editor = function(data) {
censored: function() { censored: function() {
pandora.URL.push(pandora.site.cantPlay.link); pandora.URL.push(pandora.site.cantPlay.link);
}, },
copy: function(clips) {
Ox.Clipboard.copy(clips.map(function(clip) {
return Ox.extend(clip, {item: ui.item});
}), 'clip');
},
copyadd: function(clip) {
Ox.Clipboard.add(clips.map(function(clip) {
return Ox.extend(clip, {item: ui.item});
}), 'clip');
},
define: function(data) { define: function(data) {
var dialog = data.type + 'sDialog'; var dialog = data.type + 'sDialog';
pandora.$ui[dialog] && pandora.$ui[dialog].remove(); pandora.$ui[dialog] && pandora.$ui[dialog].remove();