AJAX_ZOOM - Version 1.1.4

Version Notes

Minor improvements

Download this release

Release Info

Developer AJAX-ZOOM
Extension AJAX_ZOOM
Version 1.1.4
Comparing to
See all releases


Code changes from version 1.1.3 to 1.1.4

app/code/local/Ax/Zoom/controllers/AxzoomController.php CHANGED
@@ -386,7 +386,7 @@ class Ax_Zoom_AxzoomController extends Mage_Adminhtml_Controller_Action
386
 
387
  public function deleteDirectory($dirname, $delete_self = true)
388
  {
389
- if(!isset($dirname) || empty($dirname) || $dirname == '/') {
390
  return false;
391
  }
392
 
386
 
387
  public function deleteDirectory($dirname, $delete_self = true)
388
  {
389
+ if(empty($dirname) || strpos($dirname, 'axzoom') === FALSE) {
390
  return false;
391
  }
392
 
app/code/local/Ax/Zoom/etc/config.xml CHANGED
@@ -4,9 +4,9 @@
4
  * Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
5
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
6
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
7
- * Version: 1.1.3
8
- * Date: 2016-04-07
9
- * Review: 2015-04-07
10
  * URL: http://www.ajax-zoom.com
11
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
12
  *
@@ -20,7 +20,7 @@
20
 
21
  <modules>
22
  <Ax_Zoom>
23
- <version>1.1.3</version>
24
  </Ax_Zoom>
25
  </modules>
26
 
4
  * Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
5
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
6
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
7
+ * Version: 1.1.4
8
+ * Date: 2016-04-22
9
+ * Review: 2015-04-22
10
  * URL: http://www.ajax-zoom.com
11
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
12
  *
20
 
21
  <modules>
22
  <Ax_Zoom>
23
+ <version>1.1.4</version>
24
  </Ax_Zoom>
25
  </modules>
26
 
app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml CHANGED
@@ -3,9 +3,9 @@
3
  * Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml
4
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
5
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
6
- * Version: 1.1.2
7
- * Date: 2016-03-31
8
- * Review: 2016-03-31
9
  * URL: http://www.ajax-zoom.com
10
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
11
  *
@@ -396,14 +396,25 @@ $conf = Mage::getStoreConfig('axzoom_options');
396
  if (!$('#set_name').val()){
397
  $('#set_name').val('no_name_'+(new Date().getTime()));
398
  }
 
 
 
399
  doAdminAjax360('<?php echo Mage::helper("adminhtml")->getUrl("adminhtml/axzoom/addSet") ?>', {
400
  "name":$('#set_name').val(),
401
  "existing":$('#existing').val(),
402
  "zip":$('#zip').is(':checked'),
403
  "delete":$('#delete').is(':checked'),
404
- "arcfile":$('#arcfile').val(),
405
  "id_product" : <?php echo $productId ?>}, afterAddSet
406
  );
 
 
 
 
 
 
 
 
407
  });
408
 
409
 
3
  * Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml
4
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
5
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
6
+ * Version: 1.1.4
7
+ * Date: 2016-04-22
8
+ * Review: 2016-04-22
9
  * URL: http://www.ajax-zoom.com
10
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
11
  *
396
  if (!$('#set_name').val()){
397
  $('#set_name').val('no_name_'+(new Date().getTime()));
398
  }
399
+
400
+ var arcfileVal = $('#arcfile').val();
401
+
402
  doAdminAjax360('<?php echo Mage::helper("adminhtml")->getUrl("adminhtml/axzoom/addSet") ?>', {
403
  "name":$('#set_name').val(),
404
  "existing":$('#existing').val(),
405
  "zip":$('#zip').is(':checked'),
406
  "delete":$('#delete').is(':checked'),
407
+ "arcfile":arcfileVal,
408
  "id_product" : <?php echo $productId ?>}, afterAddSet
409
  );
410
+
411
+ if ($('#zip').is(':checked') && $('#delete').is(':checked')){
412
+ $("#arcfile option[value='"+arcfileVal+"']").remove();
413
+ if ($('#arcfile option').size() < 2){
414
+ $('#zip').trigger('click').attr({disabled: true, readonly: true});
415
+ }
416
+ }
417
+
418
  });
419
 
420
 
app/design/adminhtml/default/default/template/axzoom/uploader.phtml CHANGED
@@ -3,9 +3,9 @@
3
  * Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/uploader.phtml
4
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
5
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
6
- * Version: 1.1.2
7
- * Date: 2016-03-31
8
- * Review: 2016-03-31
9
  * URL: http://www.ajax-zoom.com
10
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
11
  *
@@ -157,7 +157,6 @@ function return_bytes($val) {
157
  $(data.context).appendTo($('#<?php echo $id ?>-success'));
158
  $('#<?php echo $id ?>-success').parent().show();
159
 
160
-
161
  if (data.result.<?php echo $name ?>[i] !== null && data.result.<?php echo $name ?>[i].status == 'ok')
162
  {
163
 
@@ -170,11 +169,10 @@ function return_bytes($val) {
170
  $("#img" + id).remove();
171
  $('#legend_1').val('');
172
 
173
-
174
  // check if we need update an image
175
  var elem = $('#imageTableSetsRows tr#' + response.id_360set + ' img');
176
  if(elem.attr('src').search('no_image') != -1) {
177
- elem.attr('src', response.path);
178
  }
179
  }
180
  }
3
  * Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/uploader.phtml
4
  * Copyright: Copyright (c) 2010-2016 Vadim Jacobi
5
  * License Agreement: http://www.ajax-zoom.com/index.php?cid=download
6
+ * Version: 1.1.4
7
+ * Date: 2016-04-22
8
+ * Review: 2016-04-22
9
  * URL: http://www.ajax-zoom.com
10
  * Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
11
  *
157
  $(data.context).appendTo($('#<?php echo $id ?>-success'));
158
  $('#<?php echo $id ?>-success').parent().show();
159
 
 
160
  if (data.result.<?php echo $name ?>[i] !== null && data.result.<?php echo $name ?>[i].status == 'ok')
161
  {
162
 
169
  $("#img" + id).remove();
170
  $('#legend_1').val('');
171
 
 
172
  // check if we need update an image
173
  var elem = $('#imageTableSetsRows tr#' + response.id_360set + ' img');
174
  if(elem.attr('src').search('no_image') != -1) {
175
+ elem.attr('src', response.path + '&thumbMode=contain');
176
  }
177
  }
178
  }
js/axzoom/.htaccess DELETED
@@ -1 +0,0 @@
1
- #php_value session.name frontend
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AJAX_ZOOM</name>
4
- <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360&#xB0; spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360&#xB0; images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
11
  <notes>Minor improvements</notes>
12
  <authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
13
- <date>2016-04-07</date>
14
- <time>14:40:18</time>
15
- <contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="b45fed73aec988d00ca1032656b9ae5b"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="5e1b97911f28d1dc5d5fac6e59ca9c13"/></dir><file name="Tabs.php" hash="40a78742e8b28cea4877e305211a9c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0aebfbfed16082f2a04697bbf085a2f9"/><file name="Head.php" hash="aac81557eb8726c7cd2b936873c52dbc"/></dir><dir name="Model"><file name="Ax360.php" hash="4f023c2c5cfeb66e5f2b63f9447f34c3"/><file name="Ax360set.php" hash="465975902e4ec60cb974f8e6cb30b2fa"/><file name="Axproducts.php" hash="0b425dcdf48578e727829112e6cacfd0"/><file name="Galleryposition.php" hash="1fe09377be47053af14d556fbb494d29"/><file name="Observer.php" hash="6f2ef3a1b7e67582d4acdc4c7ecedeb7"/><file name="Position.php" hash="576c9eccfc8e222588e0016fd8894ac7"/><dir name="Resource"><dir name="Ax360"><file name="Collection.php" hash="48d7f85f932259fdd06a62f15068a853"/></dir><file name="Ax360.php" hash="ad69211cd904f734019946ece44c07c0"/><dir name="Ax360set"><file name="Collection.php" hash="614398a735db3e8aa9de460c89c1b038"/></dir><file name="Ax360set.php" hash="e8c94cfc8d75c19e4762c3afad93b187"/><dir name="Axproducts"><file name="Collection.php" hash="15f673a08dab33c7a77f25b4c6641946"/></dir><file name="Axproducts.php" hash="93b114dd25c5e3fe501a78040ce2b36c"/></dir><file name="Words.php" hash="3c0d65a98cdaf81606f77d253c3256ae"/><file name="Yesno.php" hash="8cea5e1c9d6110c5cd54c6ffeda50382"/></dir><dir name="controllers"><file name="AxzoomController.php" hash="7e3d87458f585deef4eb8be2e0891577"/></dir><dir name="etc"><file name="config.xml" hash="ca6ab4bddf876a862fd8053fefb9db85"/><file name="system.xml" hash="70a2823b657a74ac73a0d65683d8991e"/></dir><dir name="sql"><dir name="axzoom_setup"><file name="install-0.0.1.php" hash="ba3da6f585756889a43367811acdaf7f"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="542d9cbf1adb9bf6f2887d9d5a124c4d"/></dir><dir name="template"><dir name="axzoom"><file name="tab.phtml" hash="eabd3c5d96d74acb4c1500432723f5fe"/><file name="tab360-sets.phtml" hash="cec4560f0f0c41c5224648280796eea9"/><file name="tab360-settings.phtml" hash="4b685c21e77839dc9b08c3327dcfddbc"/><file name="tab360.phtml" hash="77f80ff3595dab89a9517ceea0234814"/><file name="uploader.phtml" hash="e8e39f70e40b2228ca907f5f9be13bf7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="e7107f3d585d09d9b1b01f603b4a5d5e"/></dir><dir name="template"><dir name="ax_zoom"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="882dafc4a1a3d0a6bbe6c120ae07d2e1"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ax_Zoom.xml" hash="33069afb3fd5c26823aa1e24f6573700"/></dir></dir></target><target name="magelocale"><dir><dir name="ru_RU"><file name="Ax_Zoom.csv" hash="ad9b1e1ad87a1187dbd076b43af97429"/></dir></dir></target><target name="mageweb"><dir><dir name="js"><dir name="axzoom"><file name="check_fallback.js" hash="e3b055d8f689d5b67f87a5d27aa4537b"/><file name="check_jquery.js" hash="2e9c357045f123583a4051f237e0b380"/><file name="check_jquery_admin.js" hash="22ea95fc18e575be50ef61ddd11409ed"/><file name="image_path.gif" hash="bf922e182e18a02613f26ca5eaa4c560"/><file name="jquery-1.11.3.min.js" hash="1c1e3d814cc7278f801463874463e504"/><file name="jquery-migrate-1.2.1.min.js" hash="eb05d8d73b5b13d8d84308a4751ece96"/><file name="jquery.fileupload-process.js" hash="0da6f8ef76956f6ce7842dcf8941d1fa"/><file name="jquery.fileupload-validate.js" hash="561d450d59e39724999629cae64cd80e"/><file name="jquery.fileupload.js" hash="d4b3a5c4f6e69185727cfe98f17f0239"/><file name="jquery.livequery.htc" hash="6fddf8d185aa26ca790c9f435fee8bad"/><file name="jquery.livequery.min.js" hash="295403b41c10cc54df7c580e269088ca"/><file name="jquery.ui.widget.min.js" hash="2425a542e6dde093dd85ac0b5adc0141"/><file name="lic.php" hash="f41e4001ab878f0abba43c749cd6f610"/><file name="no_image-100x100.jpg" hash="ebbaa789d1a5e5b1bb6fdb9ccd683aa2"/><dir><dir name="pic"><file name="readme.txt" hash="763fdb72282a84d27d9a6c93e014775a"/></dir><dir name="preview"><file name="index.php" hash="c304cfb13785e145e95d5f21cc95bd12"/><file name="preview.php" hash="0ebbc68bf74927c95587decbe2f24626"/></dir><dir name="tmp"><file name="readme.txt" hash="b17a61b9642c5d472107ab7023c5c880"/></dir><dir name="zip"><file name="readme.txt" hash="2134ad018dd3da577df745a04d22899f"/><file name=".htaccess" hash="209634bb0238704c4874c35d615ae59e"/></dir></dir><file name="zoomConfigCustomAZ.inc.php" hash="51cabd3bcb03b729b16841abd03c8382"/><file name=".htaccess" hash="f5f94ad11f690d1b3f20a11f278c1be0"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.1</min><max>5.7.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AJAX_ZOOM</name>
4
+ <version>1.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
7
  <channel>community</channel>
10
  <description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360&#xB0; spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360&#xB0; images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
11
  <notes>Minor improvements</notes>
12
  <authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
13
+ <date>2016-04-22</date>
14
+ <time>20:40:00</time>
15
+ <contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="b45fed73aec988d00ca1032656b9ae5b"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="5e1b97911f28d1dc5d5fac6e59ca9c13"/></dir><file name="Tabs.php" hash="40a78742e8b28cea4877e305211a9c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0aebfbfed16082f2a04697bbf085a2f9"/><file name="Head.php" hash="aac81557eb8726c7cd2b936873c52dbc"/></dir><dir name="Model"><file name="Ax360.php" hash="4f023c2c5cfeb66e5f2b63f9447f34c3"/><file name="Ax360set.php" hash="465975902e4ec60cb974f8e6cb30b2fa"/><file name="Axproducts.php" hash="0b425dcdf48578e727829112e6cacfd0"/><file name="Galleryposition.php" hash="1fe09377be47053af14d556fbb494d29"/><file name="Observer.php" hash="6f2ef3a1b7e67582d4acdc4c7ecedeb7"/><file name="Position.php" hash="576c9eccfc8e222588e0016fd8894ac7"/><dir name="Resource"><dir name="Ax360"><file name="Collection.php" hash="48d7f85f932259fdd06a62f15068a853"/></dir><file name="Ax360.php" hash="ad69211cd904f734019946ece44c07c0"/><dir name="Ax360set"><file name="Collection.php" hash="614398a735db3e8aa9de460c89c1b038"/></dir><file name="Ax360set.php" hash="e8c94cfc8d75c19e4762c3afad93b187"/><dir name="Axproducts"><file name="Collection.php" hash="15f673a08dab33c7a77f25b4c6641946"/></dir><file name="Axproducts.php" hash="93b114dd25c5e3fe501a78040ce2b36c"/></dir><file name="Words.php" hash="3c0d65a98cdaf81606f77d253c3256ae"/><file name="Yesno.php" hash="8cea5e1c9d6110c5cd54c6ffeda50382"/></dir><dir name="controllers"><file name="AxzoomController.php" hash="fdfdd7869652b47efd2c3aad987ce9ca"/></dir><dir name="etc"><file name="config.xml" hash="9e2d99cb5565e5d82f2b776a0b02faf3"/><file name="system.xml" hash="70a2823b657a74ac73a0d65683d8991e"/></dir><dir name="sql"><dir name="axzoom_setup"><file name="install-0.0.1.php" hash="ba3da6f585756889a43367811acdaf7f"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="542d9cbf1adb9bf6f2887d9d5a124c4d"/></dir><dir name="template"><dir name="axzoom"><file name="tab.phtml" hash="eabd3c5d96d74acb4c1500432723f5fe"/><file name="tab360-sets.phtml" hash="4bfdedea0517ecda4af24ecb64be01f6"/><file name="tab360-settings.phtml" hash="4b685c21e77839dc9b08c3327dcfddbc"/><file name="tab360.phtml" hash="77f80ff3595dab89a9517ceea0234814"/><file name="uploader.phtml" hash="d08ee6e38dc788688307cb92de7c6400"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="e7107f3d585d09d9b1b01f603b4a5d5e"/></dir><dir name="template"><dir name="ax_zoom"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="882dafc4a1a3d0a6bbe6c120ae07d2e1"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ax_Zoom.xml" hash="33069afb3fd5c26823aa1e24f6573700"/></dir></dir></target><target name="magelocale"><dir><dir name="ru_RU"><file name="Ax_Zoom.csv" hash="ad9b1e1ad87a1187dbd076b43af97429"/></dir></dir></target><target name="mageweb"><dir><dir name="js"><dir name="axzoom"><file name="check_fallback.js" hash="e3b055d8f689d5b67f87a5d27aa4537b"/><file name="check_jquery.js" hash="2e9c357045f123583a4051f237e0b380"/><file name="check_jquery_admin.js" hash="22ea95fc18e575be50ef61ddd11409ed"/><file name="image_path.gif" hash="bf922e182e18a02613f26ca5eaa4c560"/><file name="jquery-1.11.3.min.js" hash="1c1e3d814cc7278f801463874463e504"/><file name="jquery-migrate-1.2.1.min.js" hash="eb05d8d73b5b13d8d84308a4751ece96"/><file name="jquery.fileupload-process.js" hash="0da6f8ef76956f6ce7842dcf8941d1fa"/><file name="jquery.fileupload-validate.js" hash="561d450d59e39724999629cae64cd80e"/><file name="jquery.fileupload.js" hash="d4b3a5c4f6e69185727cfe98f17f0239"/><file name="jquery.livequery.htc" hash="6fddf8d185aa26ca790c9f435fee8bad"/><file name="jquery.livequery.min.js" hash="295403b41c10cc54df7c580e269088ca"/><file name="jquery.ui.widget.min.js" hash="2425a542e6dde093dd85ac0b5adc0141"/><file name="lic.php" hash="f41e4001ab878f0abba43c749cd6f610"/><file name="no_image-100x100.jpg" hash="ebbaa789d1a5e5b1bb6fdb9ccd683aa2"/><dir><dir name="pic"><file name="readme.txt" hash="763fdb72282a84d27d9a6c93e014775a"/></dir><dir name="preview"><file name="index.php" hash="c304cfb13785e145e95d5f21cc95bd12"/><file name="preview.php" hash="0ebbc68bf74927c95587decbe2f24626"/></dir><dir name="tmp"><file name="readme.txt" hash="b17a61b9642c5d472107ab7023c5c880"/></dir><dir name="zip"><file name="readme.txt" hash="2134ad018dd3da577df745a04d22899f"/><file name=".htaccess" hash="209634bb0238704c4874c35d615ae59e"/></dir></dir><file name="zoomConfigCustomAZ.inc.php" hash="51cabd3bcb03b729b16841abd03c8382"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.1</min><max>5.7.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
18
  </package>