Fix Ctrl+E menu in some parts of the drive
This commit is contained in:
parent
d7f9adf19b
commit
c59d41d8f6
@ -2790,7 +2790,9 @@ define([
|
|||||||
|
|
||||||
UIElements.createNewPadModal = function (common) {
|
UIElements.createNewPadModal = function (common) {
|
||||||
// if in drive, show new pad modal instead
|
// 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(); }
|
if ($(".cp-app-drive-element-row.cp-app-drive-new-ghost").length !== 0) {
|
||||||
|
return void $(".cp-app-drive-element-row.cp-app-drive-new-ghost").click();
|
||||||
|
}
|
||||||
|
|
||||||
var $modal = UIElements.createModal({
|
var $modal = UIElements.createModal({
|
||||||
id: 'cp-app-toolbar-creation-dialog',
|
id: 'cp-app-toolbar-creation-dialog',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user