cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [31/53] [abbrv] git commit: Going back to last page instead of going to homepage
Date Mon, 07 Apr 2014 21:07:27 GMT
Going back to last page instead of going to homepage


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

Branch: refs/heads/master
Commit: 64ab3228421fdd63afe0760d486484413eaebe95
Parents: 9722c6a
Author: Josh Bavari <josh@raisemore.com>
Authored: Tue Mar 25 14:03:08 2014 -0500
Committer: Josh Bavari <josh@raisemore.com>
Committed: Tue Mar 25 14:03:08 2014 -0500

----------------------------------------------------------------------
 attachments/js/controllers/packageDetails.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/64ab3228/attachments/js/controllers/packageDetails.js
----------------------------------------------------------------------
diff --git a/attachments/js/controllers/packageDetails.js b/attachments/js/controllers/packageDetails.js
index 0c843fa..3b7138d 100644
--- a/attachments/js/controllers/packageDetails.js
+++ b/attachments/js/controllers/packageDetails.js
@@ -19,7 +19,7 @@ angular.module('registry.controllers').controller('PackageDetailsController',
['
 
     $scope.backToSearch = function backToSearch() {
         if(SearchService.getSearch() == '') {
-            window.location.href = '/';    
+            window.history.back();    
         } else {
             window.location.href = '/#/search?search=' + SearchService.getSearch();
         }


Mime
View raw message