Change ctrl+E default modal to new-pad modal in drive

This commit is contained in:
ClemDee
2019-08-06 16:39:58 +02:00
parent 0636714829
commit c45b64ffe7

View File

@@ -2104,6 +2104,9 @@ define([
};
UIElements.createNewPadModal = function (common) {
// if in drive, show new pad modal instead
if ($("body.cp-app-drive").length !== 0) { return void $(".cp-app-drive-element-row.cp-app-drive-new-ghost").click(); }
var $modal = UIElements.createModal({
id: 'cp-app-toolbar-creation-dialog',
$body: $('body')