|
78 | 78 | loader = options.loader; |
79 | 79 | } |
80 | 80 |
|
81 | | - $scope.$on("ezp-hidesAll", function (e, msg) { |
| 81 | + $scope.$on('ezp-hidesAll', function (e, msg) { |
82 | 82 | hideZoom(); |
83 | 83 | }); |
84 | | - $scope.$on("ezp-showAll", function (e, msg) { |
| 84 | + $scope.$on('ezp-showAll', function (e, msg) { |
85 | 85 | showZoom(); |
86 | 86 | }); |
87 | | - $scope.$on("ezp-disableZoom", function (e, msg) { |
| 87 | + $scope.$on('ezp-disableZoom', function (e, msg) { |
88 | 88 | var plugin = angular.element($element).data('ezPlus'); |
89 | 89 | if (plugin) { |
90 | 90 | plugin.changeState('disable'); |
91 | 91 | } |
92 | 92 | }); |
93 | | - $scope.$on("ezp-enableZoom", function (e, msg) { |
| 93 | + $scope.$on('ezp-enableZoom', function (e, msg) { |
94 | 94 | var plugin = angular.element($element).data('ezPlus'); |
95 | 95 | if (plugin) { |
96 | 96 | plugin.changeState('enable'); |
|
151 | 151 | }); |
152 | 152 |
|
153 | 153 | function hideZoom() { |
154 | | - var action='hide'; |
| 154 | + var action = 'hide'; |
155 | 155 | var plugin = angular.element($element).data('ezPlus'); |
156 | 156 | if (plugin) { |
157 | 157 | plugin.showHideZoomContainer(action); |
158 | | - plugin.showHideWindow(action); |
| 158 | + /*plugin.showHideWindow(action); |
159 | 159 | plugin.showHideTint(action); |
160 | | - plugin.showHideLens(action); |
| 160 | + plugin.showHideLens(action);*/ |
161 | 161 | } |
162 | 162 | } |
| 163 | + |
163 | 164 | function showZoom() { |
164 | | - var action='show'; |
| 165 | + var action = 'show'; |
165 | 166 | var plugin = angular.element($element).data('ezPlus'); |
166 | 167 | if (plugin) { |
167 | | - plugin.showHideLens(action); |
| 168 | + /*plugin.showHideLens(action); |
168 | 169 | plugin.showHideTint(action); |
169 | | - plugin.showHideWindow(action); |
| 170 | + plugin.showHideWindow(action);*/ |
170 | 171 | plugin.showHideZoomContainer(action); |
171 | 172 | } |
172 | 173 | } |
|
0 commit comments