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:
ansuz
2016-06-30 15:10:32 +02:00
parent ec0dba3f7c
commit 7da58a0de9
4 changed files with 151 additions and 50 deletions

View File

@@ -381,6 +381,10 @@ define([
var title = window.prompt("How would you like to title this pad?", suggestion);
if (title === null) { return; }
if (Cryptpad.causesNamingConflict(title)) {
window.alert("Another pad already has that title");
return;
}
Cryptpad.setPadTitle(title);
document.title = title;