pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
commit 0e8772a133c8eafe98eba9cb41b84af4fc3c1f4c parent a50e820cc8037fad24b7f0e0764eea5a2c37db00 Author: Jul <jul@9o.is> Date: Thu, 28 Aug 2014 14:39:02 -0400 make btm-map preview box clickable to go to btm page Diffstat:
| M | src/main/webapp/app/mycontrollers/AtmHelper.js | | | 9 | +++++++-- |
| M | src/main/webapp/templates-hidden/parts/btm-map.html | | | 2 | +- |
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/app/mycontrollers/AtmHelper.js b/src/main/webapp/app/mycontrollers/AtmHelper.js @@ -46,5 +46,11 @@ angular.module("AtmHelper", []) return "/btm/"+marker.name; } }; + + $scope.gotoPageAtm = function(marker) { + if(marker) { + window.location = $scope.pageAtm(marker); + } + }; -}]); -\ No newline at end of file +}]); diff --git a/src/main/webapp/templates-hidden/parts/btm-map.html b/src/main/webapp/templates-hidden/parts/btm-map.html @@ -31,7 +31,7 @@ <div class="map-panel" ng-cloak> - <div class="well preview-box" ng-hide="currentMarker == null || !mapLoaded || nonfound"> + <div class="well preview-box" ng-hide="currentMarker == null || !mapLoaded || nonfound" ng-click="gotoPageAtm(currentMarker)"> <div class="row"> <div class="col-xs-4 col-md-12 col-lg-4">