improve pad naming UX, slight refactoring
* prevent naming conflicts * migrate localestorage to use named attributes * use ctime and atime * display default names in table * sort pads by most recent atime * move more functions into cryptpad common * change table styles
This commit is contained in:
@@ -220,7 +220,9 @@ define([
|
||||
var title = window.prompt("How would you like this pad to be titled?",
|
||||
Cryptpad.getPadTitle());
|
||||
|
||||
if (title === null) {
|
||||
if (title === null) { return; }
|
||||
if (Cryptpad.causesNamingConflict(title)) {
|
||||
window.alert("Another pad already has that title");
|
||||
return;
|
||||
}
|
||||
Cryptpad.setPadTitle(title);
|
||||
|
||||
Reference in New Issue
Block a user