make context menu open correct app on correct port
This commit is contained in:
parent
deed04108b
commit
c936e5ae73
@ -2640,7 +2640,7 @@ 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;
|
sessionStorage[Cryptpad.newPadPathKey] = filesOp.isPathIn(currentPath, [TRASH]) ? '' : currentPath;
|
||||||
window.open('/' + type + '/');
|
window.open(APP.origin + '/' + type + '/');
|
||||||
}
|
}
|
||||||
APP.hideMenu();
|
APP.hideMenu();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user