[Mobile] Back Arrow
Changes URL correctly that is printed to the console. Is the url to up one level of objects. However not navigating to that object.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
|
||||
<span ng-controller="BrowseController">
|
||||
<span ng-controller="BrowseController"
|
||||
ng-click="backArrow()">
|
||||
<a class='icon ui-symbol mobile-back-arrow'><</a>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -63,10 +63,9 @@ define(
|
||||
// path to new, addressed, path based on
|
||||
// domainObject
|
||||
$location.path(urlService.urlForLocation("browse", domainObject));
|
||||
|
||||
}
|
||||
|
||||
function backArr(domainObject) {
|
||||
function backArr() {
|
||||
var priorRoute = $route.current,
|
||||
// Act as if params HADN'T changed to avoid page reload
|
||||
unlisten;
|
||||
@@ -79,13 +78,8 @@ define(
|
||||
}
|
||||
unlisten();
|
||||
});
|
||||
// urlService.urlForLocation used to adjust current
|
||||
// path to new, addressed, path based on
|
||||
// domainObject
|
||||
|
||||
|
||||
var thing = urlService.urlForLocation("browse", domainObject);
|
||||
$location.path(thing);
|
||||
console.log(urlService.urlForBack("browse", $scope.navigatedObject));
|
||||
$location.path(urlService.urlForBack("browse", $scope.navigatedObject));
|
||||
}
|
||||
|
||||
// Callback for updating the in-scope reference to the object
|
||||
|
||||
Reference in New Issue
Block a user