From c45b64ffe7695d1a7a8141a212eba534e6fa4ece Mon Sep 17 00:00:00 2001 From: ClemDee Date: Tue, 6 Aug 2019 16:39:58 +0200 Subject: [PATCH] Change ctrl+E default modal to new-pad modal in drive --- www/common/common-ui-elements.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 207d00336..21184395a 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -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')