dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34537
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17702: minor
------------------------------------------------------------
revno: 17702
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-12-15 16:24:52 +0100
message:
minor
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties 2014-12-15 14:00:36 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/i18n/i18n_app.properties 2014-12-15 15:24:52 +0000
@@ -17,6 +17,7 @@
cache_empty=Browser cache is empty. Nothing to clear.
clearing_cache=Clearing cache
proceed=Proceed
+select_all=Select all
cancel=Cancel
clear=Clear
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html 2014-12-15 14:00:36 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/index.html 2014-12-15 15:24:52 +0000
@@ -122,6 +122,7 @@
<!--<span class="alert alert-warning">{{'clears_local_cache'| translate}}</span>-->
<a href ng-click="clearCache()" class="btn btn-danger">{{'clear'| translate}}</a>
+ <a href ng-click="selectAll()" class="btn btn-primary">{{'select_all'| translate}}</a>
</div>
<div class="row col-sm-4" ng-if="!lsCacheExists && !idxCacheExists">
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js 2014-12-15 14:00:36 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-cache-cleaner/scripts/controllers.js 2014-12-15 15:24:52 +0000
@@ -65,9 +65,18 @@
});
}
- });
-
+ });
getItemsToClear();
});
};
+
+ $scope.selectAll = function(){
+ angular.forEach($scope.lsKeys, function(lsKey){
+ lsKey.remove = true;
+ });
+
+ angular.forEach($scope.dbKeys, function(dbKey){
+ dbKey.remove = true;
+ });
+ };
});
\ No newline at end of file