Commit df3bbd2caf9e3909d7ad617e0d0b13a054191a3c
1 parent
50438758
Commit Changes
Showing
1 changed file
with
36 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... | ... | @@ -1851,7 +1851,43 @@ function onZoom(scope) { |
1851 | 1851 | |
1852 | 1852 | |
1853 | 1853 | $(document).ready(function () { |
1854 | + var $ua = navigator.userAgent; | |
1855 | + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { | |
1856 | + //hide pin button clicked | |
1857 | + $("#hidePinBtn").removeAttr("onclick"); | |
1858 | + $("#hidePinBtn").on("touchstart", function () { | |
1859 | + var rootScope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | |
1860 | + rootScope.$apply(function () { | |
1861 | + rootScope.hidePins(event); | |
1862 | + }); | |
1863 | + }); | |
1864 | + //selected pin button clicked | |
1865 | + $("#selectedPin").removeAttr("onclick"); | |
1866 | + $("#selectedPin").on("touchstart", function () { | |
1867 | + console.log('showSelectedPins is called') | |
1868 | + var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | |
1869 | + scope.$apply(function () { | |
1870 | + scope.showSelectedPins(event); | |
1871 | + }); | |
1872 | + }); | |
1873 | + //all pin button clicked | |
1874 | + $("#allPinBtn").removeAttr("onclick"); | |
1875 | + $("#allPinBtn").on("touchstart", function () { | |
1876 | + var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | |
1877 | + scope.$apply(function () { | |
1878 | + scope.showAllPinsAfterHide(event); | |
1879 | + }); | |
1880 | + }); | |
1881 | + //comment-box button clicked | |
1882 | + $("#comment-box").removeAttr("onclick"); | |
1883 | + $("#comment-box").on("touchstart", function () { | |
1884 | + var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | |
1885 | + scope.$apply(function () { | |
1886 | + scope.ShowHideAnnotation(event); | |
1887 | + }); | |
1888 | + }); | |
1854 | 1889 | |
1890 | + } | |
1855 | 1891 | $(".slider").slider({ |
1856 | 1892 | min: 25, |
1857 | 1893 | max: 100, | ... | ... |