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/03/26 22:28:06 UTC

[19/20] git commit: Going back to last page instead of going to homepage

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/refactor
Commit: 64ab3228421fdd63afe0760d486484413eaebe95
Parents: 9722c6a
Author: Josh Bavari <jo...@raisemore.com>
Authored: Tue Mar 25 14:03:08 2014 -0500
Committer: Josh Bavari <jo...@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();
         }