Use the file name as initial title
This commit is contained in:
@@ -897,8 +897,11 @@ define([
|
||||
}
|
||||
var onNamed = function (name) {
|
||||
if (!name) { return; }
|
||||
// TODO
|
||||
var path = '/#?name=' + encodeURIComponent(name) + '&path=' + encodeURIComponent(currentPath);
|
||||
window.open('/' + type + path);
|
||||
sessionStorage[Cryptpad.newPadNameKey] = name;
|
||||
sessionStorage[Cryptpad.newPadPathKey] = currentPath;
|
||||
window.open('/' + type + '/');
|
||||
};
|
||||
Cryptpad.prompt(Messages.fm_nameFile, Cryptpad.getDefaultName({type: type}), onNamed);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user