Compare commits

...

2 commits

Author SHA1 Message Date
j
9355ae691d return empty string instead of invalid data url 2023-07-09 15:43:50 +05:30
j
5225026d66 more edit paste fixes 2023-07-09 15:15:54 +05:30
2 changed files with 8 additions and 0 deletions

View file

@ -52,6 +52,9 @@ pandora.ui.editPanel = function(isEmbed) {
} }
function getSmallTimelineURL() { function getSmallTimelineURL() {
if (!edit.duration) {
return ''
}
smallTimelineCanvas = getSmallTimelineCanvas(); smallTimelineCanvas = getSmallTimelineCanvas();
smallTimelineContext = smallTimelineCanvas.getContext('2d'); smallTimelineContext = smallTimelineCanvas.getContext('2d');
return smallTimelineCanvas.toDataURL(); return smallTimelineCanvas.toDataURL();

View file

@ -406,6 +406,11 @@ pandora.ui.folderList = function(id, section) {
pandora.ui.listDialog().open(); pandora.ui.listDialog().open();
} }
}, },
key_control_v: function() {
if (pandora.user.ui.section == 'edits' && pandora.$ui.editPanel) {
pandora.$ui.editPanel.triggerEvent("paste")
}
},
move: function(data) { move: function(data) {
pandora.api['sort' + folderItems]({ pandora.api['sort' + folderItems]({
section: id, section: id,