fix right-click pad creation in drive

pull/1/head
ansuz 7 years ago
parent d726c95f0b
commit 9d662bd337

@ -2695,8 +2695,10 @@ define([
} }
else if ($(this).hasClass("cp-app-drive-context-newdoc")) { else if ($(this).hasClass("cp-app-drive-context-newdoc")) {
var type = $(this).data('type') || 'pad'; var type = $(this).data('type') || 'pad';
sessionStorage[Cryptpad.newPadPathKey] = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath; var path2 = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath;
window.open(APP.origin + '/' + type + '/'); common.sessionStorage.put(Cryptpad.newPadPathKey, path2, function () {
common.openURL('/' + type + '/');
});
} }
APP.hideMenu(); APP.hideMenu();
}); });

Loading…
Cancel
Save