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

@@ -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);