TBT_Enhancedgrid - Version 1.02

Version Notes

- Fixed problem where JS were not being included
- FIxed bug that resized images incorrectly after they've been hidden and redisplayed.

Download this release

Release Info

Developer Magento Core Team
Extension TBT_Enhancedgrid
Version 1.02
Comparing to
See all releases


Code changes from version 1.0 to 1.02

app/code/community/TBT/Enhancedgrid/Block/Catalog/Product/Grid.php CHANGED
@@ -458,11 +458,14 @@ class TBT_Enhancedgrid_Block_Catalog_Product_Grid extends Mage_Adminhtml_Block_W
458
  $this->getMassactionBlock()->addItem('imagesDivider', $this->getMADivider("Images"));
459
 
460
  // Show images...
 
 
461
  $this->getMassactionBlock()->addItem('showImages', array(
462
  'label' => $this->__('Show Selected Images'),
463
  'url' => $this->getUrl('*/*/index', array('_current'=>true)),
464
  'callback' => 'showSelectedImages(productGrid_massactionJsObject, '
465
- .'{checkedValues}, \'<img src=\\\'{imgurl}\\\' width=50 height=50 border=0 />\')'
 
466
 
467
  ));
468
  // Hide Images
458
  $this->getMassactionBlock()->addItem('imagesDivider', $this->getMADivider("Images"));
459
 
460
  // Show images...
461
+ $imgWidth = Mage::getStoreConfig('enhancedgrid/images/width') ;
462
+ $imgHeight = Mage::getStoreConfig('enhancedgrid/images/height');
463
  $this->getMassactionBlock()->addItem('showImages', array(
464
  'label' => $this->__('Show Selected Images'),
465
  'url' => $this->getUrl('*/*/index', array('_current'=>true)),
466
  'callback' => 'showSelectedImages(productGrid_massactionJsObject, '
467
+ .'{checkedValues}, \'<img src=\\\'{imgurl}\\\' width='.$imgWidth
468
+ .' height='.$imgHeight.' border=0 />\')'
469
 
470
  ));
471
  // Hide Images
app/code/community/TBT/Enhancedgrid/etc/config.xml CHANGED
@@ -50,9 +50,9 @@
50
  <adminhtml>
51
  <layout>
52
  <updates>
53
- <TBT_Enhancedgrid>
54
  <file>tbt_enhancedgrid.xml</file>
55
- </TBT_Enhancedgrid>
56
  </updates>
57
  </layout>
58
  <menu>
50
  <adminhtml>
51
  <layout>
52
  <updates>
53
+ <enhancedgrid>
54
  <file>tbt_enhancedgrid.xml</file>
55
+ </enhancedgrid>
56
  </updates>
57
  </layout>
58
  <menu>
app/design/adminhtml/default/default/layout/tbt_enhancedgrid.xml CHANGED
@@ -30,10 +30,10 @@
30
  <default>
31
  <reference name="head">
32
  <!--action method="removeItem"><type>js</type><name>mage/adminhtml/grid.js</name></action-->
33
- <action method="addJs"><script>tbt/adminhtml/enhancedgrid/enhancedgrid.js</script></action>
34
- <action method="addJs"><script>tbt/adminhtml/enhancedgrid/egsupplemental.js</script></action>
35
- <action method="addJs"><script>tbt/adminhtml/enhancedgrid/customfunctions/catalog_products.js</script></action>
36
- <action method="addItem"><type>js_css</type><name>tbt/adminhtml/enhancedgrid/resources/css/enhancedgrid.css</name></action>
37
  </reference>
38
  </default>
39
  </layout>
30
  <default>
31
  <reference name="head">
32
  <!--action method="removeItem"><type>js</type><name>mage/adminhtml/grid.js</name></action-->
33
+ <action method="addJs"><script>tbt/enhancedgrid/enhancedgrid.js</script></action>
34
+ <action method="addJs"><script>tbt/enhancedgrid/egsupplemental.js</script></action>
35
+ <action method="addJs"><script>tbt/enhancedgrid/customfunctions/catalog_products.js</script></action>
36
+ <action method="addItem"><type>js_css</type><name>tbt/enhancedgrid/resources/css/enhancedgrid.css</name></action>
37
  </reference>
38
  </default>
39
  </layout>
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TBT_Enhancedgrid</name>
4
- <version>1.0</version>
5
  <stability>beta</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Enhances the product grid to add a bunch of convenient features.</summary>
10
  <description>Enhances the product grid to add a bunch of convenient features.</description>
11
- <notes>First beta release.</notes>
 
12
  <authors><author><name>Jay</name><user>auto-converted</user><email>najibkaake@gmail.com</email></author></authors>
13
  <date>2009-01-06</date>
14
- <time>06:38:50</time>
15
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tbt_enhancedgrid.xml" hash="e19d259d6df5dadd9ffdc2dc4e9c7977"/></dir><dir name="template"><dir name="tbt"><dir name="enhancedgrid"><dir name="catalog"><dir name="product"><file name="grid.phtml" hash="8e39bb3abd59ef4ba12fdf4d725dda90"/></dir><file name="product.phtml" hash="5fceede9ce2aaee2f33f97f106db4eaa"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="tbt"><dir name="enhancedgrid"><dir name="customfunctions"><file name="catalog_products.js" hash="729afeb31499be3f3d8793d8a534040b"/></dir><dir name="resources"><dir name="css"><file name="enhancedgrid.css" hash="a219b0e656329f2407835dbe346f81d3"/></dir></dir><file name="egsupplemental.js" hash="93289d37aad390e8faead0e7c1dcaab8"/><file name="enhancedgrid.js" hash="594bdcbf09ac73970cbadb11b72842e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TBT_Enhancedgrid.xml" hash="85a6ca652ec3777aa244a78c1c4fdac4"/></dir></target><target name="magecommunity"><dir name="TBT"><dir name="Enhancedgrid"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="9dd6640aa9c3ad0f274cb805ad6141e3"/></dir><file name="Product.php" hash="ec3358b2254c1b6448cf6f89ae632a46"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Image.php" hash="b1e25d3e8d03a0869e1c2edf5fcdd761"/></dir><dir name="Renderer"><file name="Action.php" hash="32c3917ad4c07942e9f0d003c6854b2b"/><file name="Image.php" hash="9639860b3ad18b08b835e145c2ec95ea"/></dir></dir><file name="Column.php" hash="51e74c94d0d6599cadd948a054d475af"/></dir></dir></dir><dir name="controllers"><dir name="Catalog"><file name="ProductController.php" hash="70de17f8f9231776508f3b1b7b9fb8e5"/></dir></dir><dir name="etc"><file name="config.xml" hash="39859b2abf19be405437433613bf1411"/><file name="system.xml" hash="c586c2f771c2cde39eddc6767524297e"/></dir><dir name="Helper"><file name="Data.php" hash="5ef9a7ad806e6b25bd34453851a7977e"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Columns"><file name="Show.php" hash="18a3eafdda1d53c942788ccbdfb77746"/></dir><dir name="Sort"><file name="Direction.php" hash="23cb37d1af2dd75c3c9537adf90c1bc8"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TBT_Enhancedgrid</name>
4
+ <version>1.02</version>
5
  <stability>beta</stability>
6
  <license>OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Enhances the product grid to add a bunch of convenient features.</summary>
10
  <description>Enhances the product grid to add a bunch of convenient features.</description>
11
+ <notes>- Fixed problem where JS were not being included
12
+ - FIxed bug that resized images incorrectly after they've been hidden and redisplayed.</notes>
13
  <authors><author><name>Jay</name><user>auto-converted</user><email>najibkaake@gmail.com</email></author></authors>
14
  <date>2009-01-06</date>
15
+ <time>22:56:19</time>
16
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tbt_enhancedgrid.xml" hash="ef12b7e54560a59ee8a92f7cae2688c4"/></dir><dir name="template"><dir name="tbt"><dir name="enhancedgrid"><dir name="catalog"><dir name="product"><file name="grid.phtml" hash="8e39bb3abd59ef4ba12fdf4d725dda90"/></dir><file name="product.phtml" hash="5fceede9ce2aaee2f33f97f106db4eaa"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="tbt"><dir name="enhancedgrid"><dir name="customfunctions"><file name="catalog_products.js" hash="729afeb31499be3f3d8793d8a534040b"/></dir><dir name="resources"><dir name="css"><file name="enhancedgrid.css" hash="a219b0e656329f2407835dbe346f81d3"/></dir></dir><file name="egsupplemental.js" hash="93289d37aad390e8faead0e7c1dcaab8"/><file name="enhancedgrid.js" hash="594bdcbf09ac73970cbadb11b72842e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TBT_Enhancedgrid.xml" hash="85a6ca652ec3777aa244a78c1c4fdac4"/></dir></target><target name="magecommunity"><dir name="TBT"><dir name="Enhancedgrid"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="fe1dbdb3c467f5691a590a9681616a73"/></dir><file name="Product.php" hash="ec3358b2254c1b6448cf6f89ae632a46"/></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Image.php" hash="b1e25d3e8d03a0869e1c2edf5fcdd761"/></dir><dir name="Renderer"><file name="Action.php" hash="32c3917ad4c07942e9f0d003c6854b2b"/><file name="Image.php" hash="9639860b3ad18b08b835e145c2ec95ea"/></dir></dir><file name="Column.php" hash="51e74c94d0d6599cadd948a054d475af"/></dir></dir></dir><dir name="controllers"><dir name="Catalog"><file name="ProductController.php" hash="70de17f8f9231776508f3b1b7b9fb8e5"/></dir></dir><dir name="etc"><file name="config.xml" hash="508339c7c8bde275d10137f92ba990ac"/><file name="system.xml" hash="c586c2f771c2cde39eddc6767524297e"/></dir><dir name="Helper"><file name="Data.php" hash="5ef9a7ad806e6b25bd34453851a7977e"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Columns"><file name="Show.php" hash="18a3eafdda1d53c942788ccbdfb77746"/></dir><dir name="Sort"><file name="Direction.php" hash="23cb37d1af2dd75c3c9537adf90c1bc8"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>