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/07 23:07:25 UTC

[29/53] [abbrv] git commit: After looking at other apache sites, sticking with helvitica font. Removed Lato. Also fixed search back button on the package deatils page

After looking at other apache sites, sticking with helvitica font. Removed Lato. Also fixed search back button on the package deatils page


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/8ecff1cd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/8ecff1cd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/8ecff1cd

Branch: refs/heads/master
Commit: 8ecff1cd302bdd54e01cbef4b59d81cd4d3e03fd
Parents: b18c66b
Author: Josh Bavari <jo...@raisemore.com>
Authored: Sun Mar 23 02:39:04 2014 -0500
Committer: Josh Bavari <jo...@raisemore.com>
Committed: Sun Mar 23 02:39:04 2014 -0500

----------------------------------------------------------------------
 attachments/index.html                       | 1 -
 attachments/js/controllers/packageDetails.js | 7 ++++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/8ecff1cd/attachments/index.html
----------------------------------------------------------------------
diff --git a/attachments/index.html b/attachments/index.html
index a2fa64f..121d7f9 100644
--- a/attachments/index.html
+++ b/attachments/index.html
@@ -12,7 +12,6 @@
   <title>Cordova Plugin Registry</title>
   <!-- <link rel="stylesheet" type="text/css" href="css/topcoat-mobile-light.min.css" /> -->
   <!-- <link rel="stylesheet" type="text/css" href="css/grid.min.css"> -->
-  <link href='http://fonts.googleapis.com/css?family=Lato:100,300,400' rel='stylesheet' type='text/css'>
   <link href="css/styles.css" rel="stylesheet" type="text/css">
   <link href="font/styles.css" rel="stylesheet" type="text/css">
   <link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/8ecff1cd/attachments/js/controllers/packageDetails.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/packageDetails.js b/attachments/js/controllers/packageDetails.js
index f1748d3..0c843fa 100644
--- a/attachments/js/controllers/packageDetails.js
+++ b/attachments/js/controllers/packageDetails.js
@@ -18,7 +18,12 @@ angular.module('registry.controllers').controller('PackageDetailsController', ['
     $scope.keywords = null;
 
     $scope.backToSearch = function backToSearch() {
-        window.location.href = '/#/search?search=' + SearchService.getSearch();
+        if(SearchService.getSearch() == '') {
+            window.location.href = '/';    
+        } else {
+            window.location.href = '/#/search?search=' + SearchService.getSearch();
+        }
+        
     };
 
     $scope.getPackage = function(){