diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-01 11:11:25 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-09-01 11:11:25 -0400 |
| commit | dc5dd1c8684266c320cccd6e8943b5d419a280e4 (patch) | |
| tree | a7e77fcbde6f939ef90671c96a46eabaaa31663f /www/js/app.js | |
| parent | e68762448ec8310ccf12c3ffe45e13df4ce4db00 (diff) | |
blog date was never really being recovered, only stored, therefore always showing new post indications
Former-commit-id: 113885c1d55adbbb4d758b0acaf535189e944767
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js index c036115a..6aacd8c9 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -566,11 +566,15 @@ angular.module('zmApp', [ if ($rootScope.platformOS == "desktop") { zmUpdateVersion = zmUpdateVersion + "D"; } - if (ZMDataModel.getAppVersion() != zmUpdateVersion) { + //if (ZMDataModel.getAppVersion() != zmUpdateVersion) { + if (ZMDataModel.versionCompare(ZMDataModel.getAppVersion(),zmUpdateVersion) == -1) { $rootScope.newVersionAvailable = "v" + zmUpdateVersion + " available"; } else { $rootScope.newVersionAvailable = ""; } + ZMDataModel.zmDebug ("current version: " + currentVersion + " & available version " + zmUpdateVersion); + console.log ("Version compare returned: " + ZMDataModel.versionCompare(currentVersion, zmUpdateVersion)); + console.log ("Version compare returned: " + ZMDataModel.versionCompare(zmUpdateVersion, currentVersion)); //console.log ("UPDATE " + zmVersion); }); @@ -584,6 +588,7 @@ angular.module('zmApp', [ } var lastDate = ZMDataModel.getLatestBlogPostChecked(); + console.log ("************ BLOG LAST DATE " + lastDate); if (!lastDate) { $rootScope.newBlogPost = "(new post)"; |
