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/10/18 01:42:27 UTC
[1/3] git commit: Support Browser platform as a filter
Repository: cordova-registry-web
Updated Branches:
refs/heads/master ca174d519 -> 7e6048bea
Support Browser platform as a filter
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/4a27d4f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/4a27d4f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/4a27d4f9
Branch: refs/heads/master
Commit: 4a27d4f9a51a97b2fcec559b344cfdf04da3e55d
Parents: ca174d5
Author: Raymond Camden <ra...@gmail.com>
Authored: Mon Oct 6 14:28:25 2014 -0500
Committer: Raymond Camden <ra...@gmail.com>
Committed: Mon Oct 6 14:28:25 2014 -0500
----------------------------------------------------------------------
attachments/js/controllers/search.js | 4 ++++
attachments/partials/views/search.html | 7 +++++++
2 files changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/4a27d4f9/attachments/js/controllers/search.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/search.js b/attachments/js/controllers/search.js
index 42d6b97..e6022d3 100644
--- a/attachments/js/controllers/search.js
+++ b/attachments/js/controllers/search.js
@@ -12,6 +12,7 @@ angular.module('registry.controllers').controller('SearchController', ['$rootSco
$scope.filterFirefox = false;
$scope.filterBlackberry = false;
$scope.filterUbuntu = false;
+ $scope.filterBrowser = false;
$scope.searchTerm = SearchService.getSearch();
/*
@@ -67,6 +68,9 @@ angular.module('registry.controllers').controller('SearchController', ['$rootSco
if($scope.filterWindows8) {
platformFilters.push('windows8');
}
+ if($scope.filterBrowser) {
+ platformFilters.push('browser');
+ }
return platformFilters;
};
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/4a27d4f9/attachments/partials/views/search.html
----------------------------------------------------------------------
diff --git a/attachments/partials/views/search.html b/attachments/partials/views/search.html
index cd07c75..9b40418 100644
--- a/attachments/partials/views/search.html
+++ b/attachments/partials/views/search.html
@@ -70,6 +70,13 @@
<span>Ubuntu</span>
</label>
</div>
+ <div class="column-3--lap">
+ <label class="topcoat-checkbox">
+ <input type="checkbox" ng-model="filterBrowser" />
+ <div class="topcoat-checkbox__checkmark"></div>
+ <span>Browser</span>
+ </label>
+ </div>
</div>
<pluginlist></pluginlist>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/3] git commit: remove a damn console msg
Posted by st...@apache.org.
remove a damn console msg
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/7e6048be
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/7e6048be
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/7e6048be
Branch: refs/heads/master
Commit: 7e6048bea72f4271168e0dadf5a4ffa92974374c
Parents: 261263c
Author: Raymond Camden <ra...@gmail.com>
Authored: Thu Oct 9 13:54:58 2014 -0500
Committer: Raymond Camden <ra...@gmail.com>
Committed: Thu Oct 9 13:54:58 2014 -0500
----------------------------------------------------------------------
attachments/js/directives/topbar.js | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/7e6048be/attachments/js/directives/topbar.js
----------------------------------------------------------------------
diff --git a/attachments/js/directives/topbar.js b/attachments/js/directives/topbar.js
index d64e7b9..13bbaa2 100644
--- a/attachments/js/directives/topbar.js
+++ b/attachments/js/directives/topbar.js
@@ -54,7 +54,6 @@ angular.module('registry.controllers').directive('topbar', ['$http', '$location'
}else{
//check to see if user pressed enter or hit submit button
if ((evt.keyCode === 13) || evt.type === "submit" ){
- console.log('doing this one...');
currentSearch = encodeURIComponent($scope.searchText.toLowerCase());
//send to search page
$window.location.href = '/#/search?search='+currentSearch;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/3] git commit: updates url as you type
Posted by st...@apache.org.
updates url as you type
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/261263c0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/261263c0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/261263c0
Branch: refs/heads/master
Commit: 261263c02ed7fcec4eb1611f99d15ab7f5381f15
Parents: 4a27d4f
Author: Raymond Camden <ra...@gmail.com>
Authored: Thu Oct 9 13:54:01 2014 -0500
Committer: Raymond Camden <ra...@gmail.com>
Committed: Thu Oct 9 13:54:01 2014 -0500
----------------------------------------------------------------------
attachments/js/directives/topbar.js | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/261263c0/attachments/js/directives/topbar.js
----------------------------------------------------------------------
diff --git a/attachments/js/directives/topbar.js b/attachments/js/directives/topbar.js
index 51e0f9f..d64e7b9 100644
--- a/attachments/js/directives/topbar.js
+++ b/attachments/js/directives/topbar.js
@@ -16,6 +16,12 @@ angular.module('registry.controllers').directive('topbar', ['$http', '$location'
SearchService.searchTerm = currentSearch;
currentTerms = currentSearch.trim().split(' ');
+ //handle updating the url for modern browsers
+ if(document.querySelector) {
+ $window.location.href = '/#/search?search='+currentSearch;
+ document.querySelector("#search-text").focus();
+ }
+
//todo: add a short timeout to lower number of requests
currentTerms.forEach(function(term){
if(!searchResults[term]){
@@ -48,6 +54,7 @@ angular.module('registry.controllers').directive('topbar', ['$http', '$location'
}else{
//check to see if user pressed enter or hit submit button
if ((evt.keyCode === 13) || evt.type === "submit" ){
+ console.log('doing this one...');
currentSearch = encodeURIComponent($scope.searchText.toLowerCase());
//send to search page
$window.location.href = '/#/search?search='+currentSearch;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org