Commit 32f7b93eacc584fe0b982e0fb6caef8647c3ff59
Merge branch 'bugfix5' of http://52.6.196.163/ADAM/AIAHTML5 into Develop-IPAD-MAC
Showing
4 changed files
with
106 additions
and
63 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -1344,8 +1344,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
1344 | 1344 | //set scrollbars on canvas and hide loading label |
1345 | 1345 | |
1346 | 1346 | // var isiOSSafari = (navigator.userAgent.match(/like Mac OS X/i)) ? true : false; |
1347 | - var isiOSSafari = (navigator.userAgent.match(/iPad/i)) ? true : false; | |
1348 | - | |
1347 | + var isiOSSafari = (navigator.userAgent.match(/(iPod|iPhone|iPad|android)/i)) ? true : false; | |
1348 | + | |
1349 | 1349 | //set scrollbars on canvas and hide loading label |
1350 | 1350 | $('#daLoaderLabel').css('visibility', 'hidden') |
1351 | 1351 | |
... | ... | @@ -9434,6 +9434,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
9434 | 9434 | } |
9435 | 9435 | |
9436 | 9436 | $rootScope.refreshTermListOnSystemSelection = function (bodysystemId) { |
9437 | + $rootScope.isLoading = true; | |
9438 | + $('#spinner').css('visibility', 'visible'); | |
9437 | 9439 | $rootScope.selectedBodySystemId = bodysystemId; |
9438 | 9440 | $rootScope.selectedBodySystemName = $('#bodySystems option[id="' + bodysystemId + '"]').val(); |
9439 | 9441 | $("#bodySystems").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); |
... | ... | @@ -9457,7 +9459,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
9457 | 9459 | .where('_SystemNumber == ' + bodysystemId) |
9458 | 9460 | .select(); |
9459 | 9461 | if (systemMatchedTermList != null || systemMatchedTermList != undefined) { |
9460 | - | |
9462 | + $rootScope.isLoading = false; | |
9463 | + $('#spinner').css('visibility', 'hidden'); | |
9461 | 9464 | $scope.refreshTerms(systemMatchedTermList); |
9462 | 9465 | } |
9463 | 9466 | }, | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/LinkController.js
1 | -'use strict'; | |
2 | - | |
3 | -AIA.controller("LinkController", ["$scope", "$rootScope", "$log", "$location", "pages", "$routeParams", | |
4 | -function ($scope, $rootScope, log, $location, pages, $routeParams) { | |
5 | - | |
6 | - //$rootScope.currentActiveModuleTitle = Modules[10].Name; | |
7 | - //$rootScope.currentActiveModuleTitle = $routeParams.modname; | |
8 | - $scope.links = [ | |
9 | - new link("encyclopedia", "Encyclopedia", 'https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=117', "100%", "750px"), | |
10 | - new link("IP-10", "IP 10", "http://interactiveanatomy.com/IPWeb10/index.aspx", "100%", "750px"), | |
11 | - new link("indepth-reports", "InDepth Reports", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=10", "100%", "4000px"), | |
12 | - new link("complementary-and-alternate-medicine", "Complementary and Alternative Medicine", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=107", "100%", "750px"), | |
13 | - new link("bodyguide", "Body Guide", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=25 ", "100%", "1050px"), | |
14 | - new link("health-navigator", "Health Navigator", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=65 ", "100%", "1000px"), | |
15 | - new link("wellness-tools", "The Wellness Tools", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=20 ", "100%", "1500px"), | |
16 | - new link("aod", "A.D.A.M OnDemand", "http://uat.adamondemand.com/Home/AIACatalog?categoriesID=2", "100%", "1500px") | |
17 | - ]; | |
18 | - | |
19 | - $scope.$on('$viewContentLoaded', function (event) { | |
20 | - | |
21 | - | |
22 | - if ($rootScope.refreshcheck == null) { | |
23 | - $location.path('/'); | |
24 | - } | |
25 | - // code that will be executed ... | |
26 | - // every time this view is loaded | |
27 | - | |
28 | - | |
29 | - for (var i = 0; i < $scope.links.length; i++) { | |
30 | - if ($scope.links[i].modname == $routeParams.modname) { | |
31 | - $rootScope.currentActiveModuleTitle = $scope.links[i].title; | |
32 | - if ($rootScope.currentActiveModuleTitle == "IP 10" || $rootScope.currentActiveModuleTitle == "A.D.A.M OnDemand") | |
33 | - { | |
34 | - // document.getElementById('externalLink').style.height = "1024px"; | |
35 | - document.getElementById('externalLink').style.height = $(window).outerHeight() - 128+"px"; | |
36 | - | |
37 | - } | |
38 | - $scope.objdata = $scope.links[i].objurl; | |
39 | - $scope.myObj = $scope.links[i].objstyle; | |
40 | - } | |
41 | - } | |
42 | - }); | |
43 | - | |
44 | - $scope.showTabButton = false; | |
45 | - $scope.IsVisible = function () { | |
46 | - $scope.scroll(); | |
47 | - | |
48 | - } | |
49 | - | |
50 | - $scope.scroll = function () { | |
51 | - // $window.scrollTo(0, 0); | |
52 | - $("html,body").scrollTop(0); | |
53 | - //alert("scroll"); | |
54 | - } | |
55 | -}] | |
56 | - | |
57 | - | |
58 | -); | |
59 | - | |
60 | - | |
1 | +'use strict'; | |
2 | + | |
3 | +AIA.controller("LinkController", ["$scope", "$rootScope", "$log", "$location", "pages", "$routeParams", | |
4 | +function ($scope, $rootScope, log, $location, pages, $routeParams) { | |
5 | + | |
6 | + //$rootScope.currentActiveModuleTitle = Modules[10].Name; | |
7 | + //$rootScope.currentActiveModuleTitle = $routeParams.modname; | |
8 | + $scope.links = [ | |
9 | + new link("encyclopedia", "Encyclopedia", 'https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=117', "100%", "750px"), | |
10 | + new link("IP-10", "IP 10", "http://interactiveanatomy.com/IPWeb10/index.aspx", "100%", "750px"), | |
11 | + new link("indepth-reports", "InDepth Reports", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=10", "100%", "4000px"), | |
12 | + new link("complementary-and-alternate-medicine", "Complementary and Alternative Medicine", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=107", "100%", "750px"), | |
13 | + new link("bodyguide", "Body Guide", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=25 ", "100%", "1050px"), | |
14 | + new link("health-navigator", "Health Navigator", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=65 ", "100%", "1000px"), | |
15 | + new link("wellness-tools", "The Wellness Tools", "https://ssl.adam.com/content.aspx?site=aia5se3.adam.com&login=AIA41842&productId=20 ", "100%", "1500px"), | |
16 | + new link("aod", "A.D.A.M OnDemand", "http://uat.adamondemand.com/Home/AIACatalog?categoriesID=2", "100%", "1500px") | |
17 | + ]; | |
18 | + | |
19 | + $scope.$on('$viewContentLoaded', function (event) { | |
20 | + | |
21 | + | |
22 | + if ($rootScope.refreshcheck == null) { | |
23 | + $location.path('/'); | |
24 | + } | |
25 | + // code that will be executed ... | |
26 | + // every time this view is loaded | |
27 | + | |
28 | + var $uaAOD = navigator.userAgent; | |
29 | + for (var i = 0; i < $scope.links.length; i++) { | |
30 | + if ($scope.links[i].modname == $routeParams.modname) { | |
31 | + $rootScope.currentActiveModuleTitle = $scope.links[i].title; | |
32 | + if ($rootScope.currentActiveModuleTitle == "IP 10" || $rootScope.currentActiveModuleTitle == "A.D.A.M OnDemand") | |
33 | + { | |
34 | + // document.getElementById('externalLink').style.height = "1024px"; | |
35 | + if ($uaAOD.match(/(iPod|iPhone|iPad|android)/i)) { | |
36 | + document.getElementById('externalLink').style.height = 2048 + "px"; | |
37 | + } | |
38 | + else { | |
39 | + document.getElementById('externalLink').style.height = $(window).outerHeight() - 128 + "px"; | |
40 | + } | |
41 | + | |
42 | + | |
43 | + | |
44 | + } | |
45 | + $scope.objdata = $scope.links[i].objurl; | |
46 | + $scope.myObj = $scope.links[i].objstyle; | |
47 | + } | |
48 | + } | |
49 | + }); | |
50 | + | |
51 | + $scope.showTabButton = false; | |
52 | + $scope.IsVisible = function () { | |
53 | + $scope.scroll(); | |
54 | + | |
55 | + } | |
56 | + | |
57 | + $scope.scroll = function () { | |
58 | + // $window.scrollTo(0, 0); | |
59 | + $("html,body").scrollTop(0); | |
60 | + //alert("scroll"); | |
61 | + } | |
62 | +}] | |
63 | + | |
64 | + | |
65 | +); | |
66 | + | |
67 | + | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... | ... | @@ -1395,6 +1395,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou |
1395 | 1395 | |
1396 | 1396 | $rootScope.refreshTermListOnAASystemSelection = function (bodySystemId) { |
1397 | 1397 | $rootScope.bodySystemSeletedId = bodySystemId; |
1398 | + $("#AABodySystems").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); | |
1399 | + $("#AABodySystems").find("option[id=" + bodySystemId + "]").css({ "background-color": "#3399FF", "color": "#ffffff" }); | |
1398 | 1400 | $('#termList').empty(); |
1399 | 1401 | var bodySystemName = $("#AABodySystems #" + bodySystemId).val(); |
1400 | 1402 | if (bodySystemName == "All") { | ... | ... |
400-SOURCECODE/AIAHTML5.Web/index.html
... | ... | @@ -1943,6 +1943,37 @@ |
1943 | 1943 | } |
1944 | 1944 | </script> |
1945 | 1945 | <script> |
1946 | + if (navigator.userAgent.match(/Android/i)) { | |
1947 | + | |
1948 | + $("#bodySystems").click(function () { | |
1949 | + | |
1950 | + $("#listManager").draggable('disable'); | |
1951 | + | |
1952 | + }).blur(function () { | |
1953 | + | |
1954 | + $("#listManager").draggable('enable'); | |
1955 | + | |
1956 | + }); | |
1957 | + | |
1958 | + | |
1959 | + | |
1960 | + $("#termList").click(function () { | |
1961 | + | |
1962 | + $("#listManager").draggable('disable'); | |
1963 | + | |
1964 | + }).blur(function () { | |
1965 | + | |
1966 | + $("#listManager").draggable('enable'); | |
1967 | + | |
1968 | + }); | |
1969 | + | |
1970 | + $("#borderWidthCanvasElement").click(function () { | |
1971 | + | |
1972 | + $("#modeleditstyle").draggable('disable'); | |
1973 | + }).blur(function () { | |
1974 | + $("#modeleditstyle").draggable('enable'); | |
1975 | + }); | |
1976 | + } | |
1946 | 1977 | function ResizeImage(sizePercent) { |
1947 | 1978 | var autoWidth = 427; |
1948 | 1979 | var autoHeight = 547; | ... | ... |