From 5d1c9bb4ab3a0b4c6d0c104fc3041d12516ab8d3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 21 Nov 2013 11:53:21 +0000 Subject: [PATCH] feature(dom) add loadCurrentTime --- lib/client/dom.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/client/dom.js b/lib/client/dom.js index b67340f2..8603fa4f 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1403,6 +1403,21 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; return lRet; }; + /** + * load current modification time of file + * @pCurrentFile + */ + this.loadCurrentTime = function(pCallBack, pCurrent) { + var lRet, + lCurrent = pCurrent || this.getCurrentFile(), + lLink = this.getCurrentPath(lCurrent), + lName = this.getCurrentName(lCurrent); + + RESTful.read(lLink, pCallBack, '?time'); + + return lRet; + }; + /** * set size * @pCurrentFile