TheExtensionLab_StatusColors - Version 1.3.1

Version Notes

Fix issues with 1.6 missing Add Notification method.

Make extension compatible with extension that rewrite the order block but don't extend the original call.

Reformat code.

Download this release

Release Info

Developer James Anelay
Extension TheExtensionLab_StatusColors
Version 1.3.1
Comparing to
See all releases


Code changes from version 1.3.0 to 1.3.1

app/code/community/TheExtensionLab/StatusColors/etc/config.xml CHANGED
@@ -10,14 +10,14 @@
10
  <config>
11
  <modules>
12
  <TheExtensionLab_StatusColors>
13
- <version>1.3.0</version>
14
  </TheExtensionLab_StatusColors>
15
  </modules>
16
 
17
  <global>
18
 
19
  <helpers>
20
- <theextensionlab_statuscolors>
21
  <class>TheExtensionLab_StatusColors_Helper</class>
22
  </theextensionlab_statuscolors>
23
  </helpers>
10
  <config>
11
  <modules>
12
  <TheExtensionLab_StatusColors>
13
+ <version>1.3.1</version>
14
  </TheExtensionLab_StatusColors>
15
  </modules>
16
 
17
  <global>
18
 
19
  <helpers>
20
+ <theextensionlab_statuscolors>vagrant up;vagrant ssh
21
  <class>TheExtensionLab_StatusColors_Helper</class>
22
  </theextensionlab_statuscolors>
23
  </helpers>
app/design/adminhtml/default/default/template/theextensionlab/statuscolors/sales/order/view/history/js-update.phtml CHANGED
@@ -4,12 +4,11 @@ This page is loaded via AJAX and JS executed when the status is updated, it upda
4
 
5
  -->
6
 
7
- <?php
8
- $customColor = Mage::helper('theextensionlab_statuscolors')->getColorOrDefault(
9
- Mage::helper('theextensionlab_statuscolors')->getStatusColor(
10
- $this->getOrder()->getStatus()
11
- )
12
- );
13
  ?>
14
 
15
  <script type="text/javascript">
4
 
5
  -->
6
 
7
+ <?php $customColor = Mage::helper('theextensionlab_statuscolors')->getColorOrDefault(
8
+ Mage::helper('theextensionlab_statuscolors')->getStatusColor(
9
+ $this->getOrder()->getStatus()
10
+ )
11
+ );
 
12
  ?>
13
 
14
  <script type="text/javascript">
js/theextensionlab/statuscolors/adminhtml/grid-row.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.observe("dom:loaded", function() {
2
+ var elements = $$('.custom-color');
3
+ elements.each(function(item){
4
+ item.up('tr').setStyle({
5
+ backgroundColor: item.getStyle('background-color')
6
+ });
7
+ });
8
+ });
9
+
10
+ Ajax.Responders.register({
11
+ onComplete: function() {
12
+ var elements = $$('.custom-color');
13
+ elements.each(function(item){
14
+ item.up('tr').setStyle({
15
+ backgroundColor: item.getStyle('background-color')
16
+ });
17
+ });
18
+ }
19
+ });
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TheExtensionLab_StatusColors</name>
4
- <version>1.3.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License v3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
@@ -14,9 +14,9 @@ Make extension compatible with extension that rewrite the order block but don't
14
  &#xD;
15
  Reformat code.</notes>
16
  <authors><author><name>James Anelay</name><user>TheExtensionLab</user><email>james@theextensionlab.com</email></author></authors>
17
- <date>2015-08-23</date>
18
- <time>14:25:17</time>
19
- <contents><target name="mageetc"><dir name="modules"><file name="TheExtensionLab_StatusColors.xml" hash="4c15e58ee68e865e66ab006bf676f663"/></dir></target><target name="magecommunity"><dir name="TheExtensionLab"><dir name="StatusColors"><dir name="Helper"><file name="Data.php" hash="380db27ecdc6d58e9a7bb44188466a64"/></dir><dir name="Model"><file name="Observer.php" hash="7184be75fa31e970b2dc621af9deeb21"/><dir name="Resource"><file name="Setup.php" hash="bbd09b40554beed81fe36b3cb5855a37"/></dir></dir><dir name="Test"><dir name="Config"><file name="Main.php" hash="3f05adf130be60588c7afce56111d390"/></dir><dir name="Model"><file name="Observer.php" hash="9b7f6571ae41fd0dba1d76ce2268d480"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="1631d6dc69406ea8a300bd047645c228"/><file name="config.xml" hash="52a5ba5e143f32f6228a0971502c41f4"/><file name="system.xml" hash="6463a2b69863a98fb91f06296fadbf89"/></dir><dir name="sql"><dir name="theextensionlab_statuscolors_setup"><file name="install-0.1.0.php" hash="4869f0bfe53cc715aa83bfe2764dff2b"/></dir></dir><file name=".DS_Store" hash="8eb0d5509f0673aceb268575b9879e7e"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="theextensionlab"><file name="statuscolors.xml" hash="b220b2611451a429da72b4d22d2a09ac"/></dir></dir><dir name="template"><dir name="theextensionlab"><dir name="statuscolors"><dir name="sales"><dir name="order"><dir name="view"><dir name="history"><file name="js-update.phtml" hash="f85ff9077cc99d4fa9fc9f14d18d57e3"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="theextensionlab"><dir name="adminhtml"><dir name="jscolor"><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="a26701f49bf33da8dc48f3431e5f4f42"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="theextensionlab"><dir name="statuscolors"><file name="grid.css" hash="ccaefc16d8f399350c61cc897d5bee97"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>TheExtensionLab_StatusColors</name>
4
+ <version>1.3.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License v3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
14
  &#xD;
15
  Reformat code.</notes>
16
  <authors><author><name>James Anelay</name><user>TheExtensionLab</user><email>james@theextensionlab.com</email></author></authors>
17
+ <date>2015-08-25</date>
18
+ <time>14:41:31</time>
19
+ <contents><target name="mageetc"><dir name="modules"><file name="TheExtensionLab_StatusColors.xml" hash="4c15e58ee68e865e66ab006bf676f663"/></dir></target><target name="magecommunity"><dir name="TheExtensionLab"><dir name="StatusColors"><dir name="Helper"><file name="Data.php" hash="380db27ecdc6d58e9a7bb44188466a64"/></dir><dir name="Model"><file name="Observer.php" hash="7184be75fa31e970b2dc621af9deeb21"/><dir name="Resource"><file name="Setup.php" hash="bbd09b40554beed81fe36b3cb5855a37"/></dir></dir><dir name="Test"><dir name="Config"><file name="Main.php" hash="3f05adf130be60588c7afce56111d390"/></dir><dir name="Model"><file name="Observer.php" hash="9b7f6571ae41fd0dba1d76ce2268d480"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="1631d6dc69406ea8a300bd047645c228"/><file name="config.xml" hash="c2d89031c91b68f7ac329dcafed1c090"/><file name="system.xml" hash="6463a2b69863a98fb91f06296fadbf89"/></dir><dir name="sql"><dir name="theextensionlab_statuscolors_setup"><file name="install-0.1.0.php" hash="4869f0bfe53cc715aa83bfe2764dff2b"/></dir></dir><file name=".DS_Store" hash="8eb0d5509f0673aceb268575b9879e7e"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="theextensionlab"><file name="statuscolors.xml" hash="b220b2611451a429da72b4d22d2a09ac"/></dir></dir><dir name="template"><dir name="theextensionlab"><dir name="statuscolors"><dir name="sales"><dir name="order"><dir name="view"><dir name="history"><file name="js-update.phtml" hash="9be57d5e85683d8703df9e9b1205981f"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="theextensionlab"><dir name="adminhtml"><dir name="jscolor"><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="a26701f49bf33da8dc48f3431e5f4f42"/></dir></dir><dir name="statuscolors"><dir name="adminhtml"><file name="grid-row.js" hash="3c43db2dfb19e86bfb9f8066b1693e74"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="theextensionlab"><dir name="statuscolors"><file name="grid.css" hash="ccaefc16d8f399350c61cc897d5bee97"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>