Commit b233a99c authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Sebastien Robin

Deleting some unneeded files.

parent 9af14f8a
...@@ -713,6 +713,11 @@ ...@@ -713,6 +713,11 @@
priv.done_loadDocument = function ( returneddocument ) { priv.done_loadDocument = function ( returneddocument ) {
priv.res.message = 'Document loaded.'; priv.res.message = 'Document loaded.';
priv.res.document = returneddocument; priv.res.document = returneddocument;
// transform date into ms
priv.res.document.lastModified =
new Date(priv.res.document.lastModified).getTime();
priv.res.document.creationDate =
new Date(priv.res.document.creationDate).getTime();
}, },
priv.fail_saveDocument = function () { priv.fail_saveDocument = function () {
priv.res.isSaved = false; priv.res.isSaved = false;
......
...@@ -380,11 +380,11 @@ ...@@ -380,11 +380,11 @@
that.getStoragePassword() )}, that.getStoragePassword() )},
success: function (xmlData) { success: function (xmlData) {
doc.lastModified = ( doc.lastModified = (
new Date($($("lp1\\:getlastmodified", $($("lp1\\:getlastmodified",
xmlData).get(0)).text())).getTime(); xmlData).get(0)).text());
doc.creationDate = ( doc.creationDate = (
new Date($($("lp1\\:creationdate", $($("lp1\\:creationdate",
xmlData).get(0)).text())).getTime(); xmlData).get(0)).text());
doc.fileName = that.getFileName(); doc.fileName = that.getFileName();
if (settings.getContent) { if (settings.getContent) {
getContent(); getContent();
......
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