Merge pull request #410 from xwiki-labs/ctrlE

Change ctrl+E default modal to new-pad modal in drive
This commit is contained in:
ansuz 2019-08-08 14:35:40 +02:00 committed by GitHub
commit 1fe2d39385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')