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() {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue