You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/04/08 23:05:54 UTC
[2/2] git commit: CB-6285: added png version of pluggy
CB-6285: added png version of pluggy
Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/b839e62d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/b839e62d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/b839e62d
Branch: refs/heads/master
Commit: b839e62d4d16d4d66ff5951721ec28816f0f5d22
Parents: 8e8956e
Author: Steven Gill <st...@gmail.com>
Authored: Tue Apr 8 15:05:43 2014 -0600
Committer: Steven Gill <st...@gmail.com>
Committed: Tue Apr 8 15:05:43 2014 -0600
----------------------------------------------------------------------
attachments/img/pluggy.png | Bin 0 -> 16342 bytes
attachments/js/controllers/search.js | 5 +++--
attachments/js/directives/pluginlist.js | 12 ++++++++++++
attachments/partials/directives/pluginlist.html | 2 +-
4 files changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b839e62d/attachments/img/pluggy.png
----------------------------------------------------------------------
diff --git a/attachments/img/pluggy.png b/attachments/img/pluggy.png
new file mode 100644
index 0000000..1317585
Binary files /dev/null and b/attachments/img/pluggy.png differ
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b839e62d/attachments/js/controllers/search.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/search.js b/attachments/js/controllers/search.js
index eef47e4..42d6b97 100644
--- a/attachments/js/controllers/search.js
+++ b/attachments/js/controllers/search.js
@@ -14,15 +14,16 @@ angular.module('registry.controllers').controller('SearchController', ['$rootSco
$scope.filterUbuntu = false;
$scope.searchTerm = SearchService.getSearch();
-
+/*
$scope.reverse = null;
$scope.orderValue = 'key';
$scope.setOrderBy = function setOrderBy (value) {
+ console.log(value);
$scope.orderValue = value;
$scope.reverse = !$scope.reverse;
};
-
+*/
$scope.selectedPlatforms = function() {
//send back null if we arent showing filters
if(!$scope.showFilters) {
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b839e62d/attachments/js/directives/pluginlist.js
----------------------------------------------------------------------
diff --git a/attachments/js/directives/pluginlist.js b/attachments/js/directives/pluginlist.js
index 85bf4dd..6731d39 100644
--- a/attachments/js/directives/pluginlist.js
+++ b/attachments/js/directives/pluginlist.js
@@ -4,8 +4,20 @@ angular.module('registry.controllers').directive('pluginlist', function () {
templateUrl: '/partials/directives/pluginlist.html',
controller:['$scope', '$rootScope', 'Downloads', function($scope, $rootScope, Downloads){
Downloads.getDownloads().then(function(obj){
+ console.log(obj);
$scope.downloads = obj.data;
+ $scope.downloadsArray = obj.arrData;
});
+
+ $scope.reverse = null;
+ $scope.orderValue = 'key';
+
+ $scope.setOrderBy = function setOrderBy (value) {
+ console.log(value);
+ $scope.orderValue = value;
+ $scope.reverse = !$scope.reverse;
+ };
+
}],
link: function(scope, element, attrs, controller){
}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/b839e62d/attachments/partials/directives/pluginlist.html
----------------------------------------------------------------------
diff --git a/attachments/partials/directives/pluginlist.html b/attachments/partials/directives/pluginlist.html
index 05ece9a..4599805 100644
--- a/attachments/partials/directives/pluginlist.html
+++ b/attachments/partials/directives/pluginlist.html
@@ -9,7 +9,7 @@
Version
</div>
<div class="column-2--hand center invisible--hand visible--lap">
- <a ng-click="setOrderBy('downloads[plugin.key]')">Downloads</a>
+ <a ng-click="setOrderBy('downloads[key]')">Downloads</a>
<span ng-show="orderValue == 'downloads[plugin.key]' "><i ng-show="reverse" class="icon-up-dir"></i><i ng-hide="reverse" class="icon-down-dir"></i></span>
</div>
</div>