Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9949A10E99 for ; Mon, 7 Apr 2014 21:07:48 +0000 (UTC) Received: (qmail 69788 invoked by uid 500); 7 Apr 2014 21:07:45 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 69685 invoked by uid 500); 7 Apr 2014 21:07:42 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 67688 invoked by uid 99); 7 Apr 2014 21:07:07 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Apr 2014 21:07:07 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E2A2494CF98; Mon, 7 Apr 2014 21:06:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: steven@apache.org To: commits@cordova.apache.org Date: Mon, 07 Apr 2014 21:07:41 -0000 Message-Id: In-Reply-To: <0e63a9a19fa14a8594e959fb3dad5707@git.apache.org> References: <0e63a9a19fa14a8594e959fb3dad5707@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [45/53] [abbrv] git commit: Adding basic sorting on the search results ng-repeat directive via orderBy Adding basic sorting on the search results ng-repeat directive via orderBy 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/27c89cf9 Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/27c89cf9 Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/27c89cf9 Branch: refs/heads/master Commit: 27c89cf9c894870d9954bfc6ac92f5bbff2d938a Parents: 10fd1ac Author: Josh Bavari Authored: Sun Mar 30 13:56:14 2014 -0500 Committer: Josh Bavari Committed: Sun Mar 30 13:56:14 2014 -0500 ---------------------------------------------------------------------- attachments/js/controllers/search.js | 8 ++++++++ attachments/partials/directives/pluginlist.html | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/27c89cf9/attachments/js/controllers/search.js ---------------------------------------------------------------------- diff --git a/attachments/js/controllers/search.js b/attachments/js/controllers/search.js index fd81f56..eef47e4 100644 --- a/attachments/js/controllers/search.js +++ b/attachments/js/controllers/search.js @@ -15,6 +15,14 @@ angular.module('registry.controllers').controller('SearchController', ['$rootSco $scope.searchTerm = SearchService.getSearch(); + $scope.reverse = null; + $scope.orderValue = 'key'; + + $scope.setOrderBy = function setOrderBy (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/27c89cf9/attachments/partials/directives/pluginlist.html ---------------------------------------------------------------------- diff --git a/attachments/partials/directives/pluginlist.html b/attachments/partials/directives/pluginlist.html index 65af6b6..05ece9a 100644 --- a/attachments/partials/directives/pluginlist.html +++ b/attachments/partials/directives/pluginlist.html @@ -1,16 +1,19 @@
- Plugin ID & description + Plugin ID & description + +
Version
- Downloads + Downloads +
-
+
{{((plugin.value.description)||(plugin.doc.description))}}