forked from 0x2620/pandora
editor: handle copy events
This commit is contained in:
parent
d636f63f65
commit
8fa2172c8b
1 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,16 @@ pandora.ui.editor = function(data) {
|
|||
censored: function() {
|
||||
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) {
|
||||
var dialog = data.type + 'sDialog';
|
||||
pandora.$ui[dialog] && pandora.$ui[dialog].remove();
|
||||
|
|
Loading…
Reference in a new issue