Skip to content

Commit

Permalink
Updated to latest version of EZP
Browse files Browse the repository at this point in the history
Remove hiding of lens/tints from hiding of zoom, since it disturbs with ezp methods.
Version Bump
  • Loading branch information
ceilino committed Nov 14, 2015
1 parent 26715c3 commit e6cd2ee
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ez-plus",
"version": "1.1.16",
"version": "1.1.17",
"author": {
"name": "Igor Lino",
"url": "http://igorlino.github.io/angular-elevatezoom-plus/"
Expand All @@ -27,7 +27,7 @@
"dependencies": {
"jquery": "~2.1.1",
"angular": "~1.3.4",
"ez-plus": "~1.1.16"
"ez-plus": "~1.1.17"
},
"devDependencies": {
},
Expand Down
16 changes: 8 additions & 8 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<link rel="stylesheet" href="https://rawgit.com/igorlino/elevatezoom-plus/master/css/jquery.ez-plus.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.js"></script>
<script src='https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.16/src/jquery.ez-plus.js'></script>
<script src='https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.17/src/jquery.ez-plus.js'></script>

<script type="text/javascript"
src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
Expand All @@ -46,19 +46,19 @@

<!--
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.16/demo/css/style.css" media="screen" />
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.16/js/angular-ezplus.js'></script>
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.16/demo/js/controller.js'></script>
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.16/demo/js/app.js'></script>
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.17/demo/css/style.css" media="screen" />
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.17/js/angular-ezplus.js'></script>
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.17/demo/js/controller.js'></script>
<script src='https://cdn.rawgit.com/igorlino/angular-elevatezoom-plus/1.1.17/demo/js/app.js'></script>
-->

<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
<script src='../js/angular-ezplus.js'></script>
<script src='js/controller.js'></script>
<script src='js/controller.js'></script>^
<script src='js/app.js'></script>

<link type="text/css" rel="stylesheet" href="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.16/demo/css/prism.css"/>
<script type="text/javascript" src="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.16/demo/js/prism.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.17/demo/css/prism.css"/>
<script type="text/javascript" src="https://cdn.rawgit.com/igorlino/elevatezoom-plus/1.1.17/demo/js/prism.js"></script>
</head>

<body
Expand Down
21 changes: 11 additions & 10 deletions js/angular-ezplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@
loader = options.loader;
}

$scope.$on("ezp-hidesAll", function (e, msg) {
$scope.$on('ezp-hidesAll', function (e, msg) {
hideZoom();
});
$scope.$on("ezp-showAll", function (e, msg) {
$scope.$on('ezp-showAll', function (e, msg) {
showZoom();
});
$scope.$on("ezp-disableZoom", function (e, msg) {
$scope.$on('ezp-disableZoom', function (e, msg) {
var plugin = angular.element($element).data('ezPlus');
if (plugin) {
plugin.changeState('disable');
}
});
$scope.$on("ezp-enableZoom", function (e, msg) {
$scope.$on('ezp-enableZoom', function (e, msg) {
var plugin = angular.element($element).data('ezPlus');
if (plugin) {
plugin.changeState('enable');
Expand Down Expand Up @@ -151,22 +151,23 @@
});

function hideZoom() {
var action='hide';
var action = 'hide';
var plugin = angular.element($element).data('ezPlus');
if (plugin) {
plugin.showHideZoomContainer(action);
plugin.showHideWindow(action);
/*plugin.showHideWindow(action);
plugin.showHideTint(action);
plugin.showHideLens(action);
plugin.showHideLens(action);*/
}
}

function showZoom() {
var action='show';
var action = 'show';
var plugin = angular.element($element).data('ezPlus');
if (plugin) {
plugin.showHideLens(action);
/*plugin.showHideLens(action);
plugin.showHideTint(action);
plugin.showHideWindow(action);
plugin.showHideWindow(action);*/
plugin.showHideZoomContainer(action);
}
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ez-plus",
"version": "1.1.16",
"version": "1.1.17",
"title": "Angular EZ Plus",
"description": "Angular directive for ElevateZoom Plus.",
"keywords": [
Expand Down Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"jquery": ">=2.1.4",
"angular": "~1.3.4",
"ez-plus": "~1.1.16"
"ez-plus": "~1.1.17"
},
"devDependencies": {
"grunt": "^0.4.5",
Expand Down

0 comments on commit e6cd2ee

Please sign in to comment.