fix copy from document browser

This commit is contained in:
j 2017-03-02 12:14:10 +01:00
parent 0d51906dd8
commit 812e8a8345

View file

@ -46,10 +46,10 @@ pandora.ui.documentBrowser = function() {
.addClass('OxMedia') .addClass('OxMedia')
.bindEvent({ .bindEvent({
copy: function() { copy: function() {
pandora.clipboard.copy(pandora.user.ui.item, 'document'); pandora.clipboard.copy(pandora.user.ui.document, 'document');
}, },
copyadd: function() { copyadd: function() {
pandora.clipboard.add(pandora.user.ui.item, 'document'); pandora.clipboard.add(pandora.user.ui.document, 'document');
}, },
gainfocus: function() { gainfocus: function() {
pandora.$ui.mainMenu.replaceItemMenu(); pandora.$ui.mainMenu.replaceItemMenu();
@ -58,9 +58,7 @@ pandora.ui.documentBrowser = function() {
that.scrollToSelection(); that.scrollToSelection();
}, },
openpreview: function() { openpreview: function() {
if (pandora.isVideoView()) { // ..
pandora.$ui[pandora.user.ui.itemView].gainFocus().triggerEvent('key_space');
}
}, },
select: function(data) { select: function(data) {
data.ids.length && pandora.UI.set({ data.ids.length && pandora.UI.set({