Commit c343d47c authored by François Billioud's avatar François Billioud

change the name of files (use timestamps instead of complete date)

parent 12e1a7fe
...@@ -406,7 +406,7 @@ JSONDocument.prototype.load({//add methods thanks to the UngObject.load method ...@@ -406,7 +406,7 @@ JSONDocument.prototype.load({//add methods thanks to the UngObject.load method
//dates //dates
getCreation:function() {return this.creation;}, getCreation:function() {return this.creation;},
getLastModification:function() {return this.lastModification;}, getLastModification:function() {return this.lastModification.toUTCString();},
setLastModification:function(date) {this.lastModification=date;}, setLastModification:function(date) {this.lastModification=date;},
//state //state
......
...@@ -208,7 +208,7 @@ tryUntilSucceed = function(func) { ...@@ -208,7 +208,7 @@ tryUntilSucceed = function(func) {
* could be developed to implement more beautiful resizments * could be developed to implement more beautiful resizments
*/ */
var resize = function() { var resize = function() {
$("div.main-right").width($(window).width()-$("div.main-left").width()); return $("div.main-right").width($(window).width()-$("div.main-left").width());
} }
/** /**
...@@ -222,7 +222,7 @@ errorMessage = function(message,object) { ...@@ -222,7 +222,7 @@ errorMessage = function(message,object) {
/** /**
* returns the current date * returns the current date
*/ */
currentTime = function() {return (new Date()).toUTCString();} currentTime = function() {return Date.now();}
/** /**
* Paste a toolkit at the mouse position * Paste a toolkit at the mouse position
......
...@@ -47,10 +47,8 @@ ...@@ -47,10 +47,8 @@
getDocumentList().resetSelectionList(); getDocumentList().resetSelectionList();
getDocumentList().updateDisplayInformation(); getDocumentList().updateDisplayInformation();
getDocumentList().display(); getDocumentList().display();
resize();} resize();}//hack for a bug with firefox
); );
resize();
} }
$(window).resize(resize); $(window).resize(resize);
$(document).ready(init); $(document).ready(init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment