ajaxified_product_edit - Version 0.1.1.0

Version Notes

This module will help you manage the product attributes.

Download this release

Release Info

Developer Marcin Frymark
Extension ajaxified_product_edit
Version 0.1.1.0
Comparing to
See all releases


Code changes from version 0.1.0.4 to 0.1.1.0

app/code/community/Alekseon/AjaxifiedProductEdit/Model/AlekseonAdminNotification/Feed.php CHANGED
@@ -19,7 +19,11 @@ class Alekseon_AjaxifiedProductEdit_Model_AlekseonAdminNotification_Feed extends
19
  $this->_feedUrl = Mage::helper('alekseon_ajaxifiedProductEdit')->getAlekseonUrl() . '/rss/magento_rss.xml';
20
  $query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
21
  $query .= '&utm_medium=' . urlencode('Magento Connect');
22
- $query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
 
 
 
 
23
  $query .= '&utm_term=' . urlencode(implode(',', $this->_getAlekseonInstalledModules()));
24
 
25
  $this->_feedUrl .= $query;
19
  $this->_feedUrl = Mage::helper('alekseon_ajaxifiedProductEdit')->getAlekseonUrl() . '/rss/magento_rss.xml';
20
  $query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
21
  $query .= '&utm_medium=' . urlencode('Magento Connect');
22
+ if (method_exists(Mage, 'getEdition')) {
23
+ $query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
24
+ } else {
25
+ $query .= '&utm_content=' . urlencode(Mage::getVersion());
26
+ }
27
  $query .= '&utm_term=' . urlencode(implode(',', $this->_getAlekseonInstalledModules()));
28
 
29
  $this->_feedUrl .= $query;
app/code/community/Alekseon/AjaxifiedProductEdit/controllers/Adminhtml/AjaxifiedProductEdit/ManageGridViewsController.php CHANGED
@@ -58,7 +58,7 @@ class Alekseon_AjaxifiedProductEdit_Adminhtml_AjaxifiedProductEdit_ManageGridVie
58
  }
59
 
60
  $this->_getSession()->addSuccess(
61
- Mage::helper('alekseon_ajaxifiedProductEdit')->__('Grid View set has been saved.')
62
  );
63
 
64
  $this->getResponse()->setRedirect($this->getUrl('*/ajaxifiedProductEdit_manageGridViews'));
58
  }
59
 
60
  $this->_getSession()->addSuccess(
61
+ Mage::helper('alekseon_ajaxifiedProductEdit')->__('Grid View set has been removed.')
62
  );
63
 
64
  $this->getResponse()->setRedirect($this->getUrl('*/ajaxifiedProductEdit_manageGridViews'));
app/code/community/Alekseon/AjaxifiedProductEdit/etc/config.xml CHANGED
@@ -1 +1 @@
1
- <?xml version="1.0"?>
2
  * @author Marcin Frymark
3
  * @email contact@alekseon.com
4
  * @company Alekseon
5
  * @website www.alekseon.com
6
  */
7
- ->
8
  <modules>
9
  <Alekseon_AjaxifiedProductEdit>
10
  <version>0.1.0</version>
11
  </Alekseon_AjaxifiedProductEdit>
12
  </modules>
13
  <global>
14
  <blocks>
15
  <alekseon_ajaxifiedProductEdit>
16
  <class>Alekseon_AjaxifiedProductEdit_Block</class>
17
  </alekseon_ajaxifiedProductEdit>
18
  </blocks>
19
  <models>
20
  <alekseon_ajaxifiedProductEdit>
21
  <class>Alekseon_AjaxifiedProductEdit_Model</class>
22
  <resourceModel>alekseon_ajaxifiedproductedit_resource</resourceModel>
23
  </alekseon_ajaxifiedProductEdit>
24
  <alekseon_ajaxifiedproductedit_resource>
25
  <class>Alekseon_AjaxifiedProductEdit_Model_Resource</class>
26
  <gridview>
27
  <table>alekseon_ajaxifiedproductedit_gridview</table>
28
  </gridview>
29
  <gridview_attributeColumns>
30
  <table>alekseon_ajaxifiedproductedit_gridview_attributeColumns</table>
31
  </gridview_attributeColumns>
32
  </entities>
33
  </alekseon_ajaxifiedproductedit_resource>
34
  </models>
35
  <helpers>
36
  <alekseon_ajaxifiedProductEdit>
37
  <class>Alekseon_AjaxifiedProductEdit_Helper</class>
38
  </alekseon_ajaxifiedProductEdit>
39
  </helpers>
40
  <resources>
41
  <alekseon_ajaxifiedproductedit_setup>
42
  <setup>
43
  <module>Alekseon_AjaxifiedProductEdit</module>
44
  <class>Mage_Core_Model_Resource_Setup</class>
45
  </setup>
46
  </alekseon_ajaxifiedproductedit_setup>
47
  </resources>
48
  </global>
49
  <adminhtml>
50
  <events>
51
  <controller_action_predispatch>
52
  <observers>
53
  <alekseon_adminNotification>
54
  <class>alekseon_ajaxifiedProductEdit/alekseonAdminNotification_observer</class>
55
  <method>preDispatch</method>
56
  </alekseon_adminNotification>
57
  </observers>
58
  </controller_action_predispatch>
59
  </events>
60
  </adminhtml>
61
  <admin>
62
  <routers>
63
  <adminhtml>
64
  <args>
65
  <modules>
66
  <alekseon_ajaxifiedProductEdit before="Mage_Adminhtml">Alekseon_AjaxifiedProductEdit_Adminhtml</alekseon_ajaxifiedProductEdit>
67
  </modules>
68
  </args>
69
  </adminhtml>
70
  </routers>
71
  </admin>
72
  <adminhtml>
73
  <layout>
74
  <updates>
75
  <alekseon_ajaxifiedProductEdit>
76
  <file>alekseon/ajaxifiedProductEdit.xml</file>
77
  </alekseon_ajaxifiedProductEdit>
78
  </updates>
79
  </layout>
80
  </adminhtml>
81
  <default>
82
  <alekseon_adminNotification>
83
  <general>
84
  <enabled>1</enabled>
85
  <frequency>12</frequency>
86
  </general>
87
  </alekseon_adminNotification>
88
  <alekseon_ajaxifiedProductEdit>
89
  <general>
90
  <enabled>1</enabled>
91
  </general>
92
  <advanced>
93
  <refresh_row>1</refresh_row>
94
  </advanced>
95
  </alekseon_ajaxifiedProductEdit>
96
  </default>
 
97
  * @author Marcin Frymark
98
  * @email contact@alekseon.com
99
  * @company Alekseon
100
  * @website www.alekseon.com
101
  */
102
- ->
103
  <modules>
104
  <Alekseon_AjaxifiedProductEdit>
105
  <version>0.1.1</version>
106
  </Alekseon_AjaxifiedProductEdit>
107
  </modules>
108
  <global>
109
  <blocks>
110
  <alekseon_ajaxifiedProductEdit>
111
  <class>Alekseon_AjaxifiedProductEdit_Block</class>
112
  </alekseon_ajaxifiedProductEdit>
113
  </blocks>
114
  <models>
115
  <alekseon_ajaxifiedProductEdit>
116
  <class>Alekseon_AjaxifiedProductEdit_Model</class>
117
  <resourceModel>alekseon_ajaxifiedproductedit_resource</resourceModel>
118
  </alekseon_ajaxifiedProductEdit>
119
  <alekseon_ajaxifiedproductedit_resource>
120
  <class>Alekseon_AjaxifiedProductEdit_Model_Resource</class>
121
  <gridview>
122
  <table>alekseon_ajaxifiedproductedit_gridview</table>
123
  </gridview>
124
  <gridview_attributeColumns>
125
  <table>alekseon_ajaxifiedproductedit_gridview_attributeColumns</table>
126
  </gridview_attributeColumns>
127
  </entities>
128
  </alekseon_ajaxifiedproductedit_resource>
129
  </models>
130
  <helpers>
131
  <alekseon_ajaxifiedProductEdit>
132
  <class>Alekseon_AjaxifiedProductEdit_Helper</class>
133
  </alekseon_ajaxifiedProductEdit>
134
  </helpers>
135
  <resources>
136
  <alekseon_ajaxifiedproductedit_setup>
137
  <setup>
138
  <module>Alekseon_AjaxifiedProductEdit</module>
139
  <class>Mage_Core_Model_Resource_Setup</class>
140
  </setup>
141
  </alekseon_ajaxifiedproductedit_setup>
142
  </resources>
143
  </global>
144
  <adminhtml>
145
  <layout>
146
  <updates>
147
  <alekseon_ajaxifiedProductEdit>
148
  <file>alekseon/ajaxifiedProductEdit.xml</file>
149
  </alekseon_ajaxifiedProductEdit>
150
  </updates>
151
  </layout>
152
  <events>
153
  <controller_action_predispatch>
154
  <observers>
155
  <alekseon_adminNotification>
156
  <class>alekseon_ajaxifiedProductEdit/alekseonAdminNotification_observer</class>
157
  <method>preDispatch</method>
158
  </alekseon_adminNotification>
159
  </observers>
160
  </controller_action_predispatch>
161
  </events>
162
  </adminhtml>
163
  <admin>
164
  <routers>
165
  <adminhtml>
166
  <args>
167
  <modules>
168
  <alekseon_ajaxifiedProductEdit before="Mage_Adminhtml">Alekseon_AjaxifiedProductEdit_Adminhtml</alekseon_ajaxifiedProductEdit>
169
  </modules>
170
  </args>
171
  </adminhtml>
172
  </routers>
173
  </admin>
174
  <default>
175
  <alekseon_adminNotification>
176
  <general>
177
  <enabled>1</enabled>
178
  <frequency>12</frequency>
179
  </general>
180
  </alekseon_adminNotification>
181
  <alekseon_ajaxifiedProductEdit>
182
  <general>
183
  <enabled>1</enabled>
184
  </general>
185
  <advanced>
186
  <refresh_row>1</refresh_row>
187
  </advanced>
188
  </alekseon_ajaxifiedProductEdit>
189
  </default>
 
1
  * @author Marcin Frymark
2
  * @email contact@alekseon.com
3
  * @company Alekseon
4
  * @website www.alekseon.com
5
  */
 
6
  <modules>
7
  <Alekseon_AjaxifiedProductEdit>
8
  <version>0.1.0</version>
9
  </Alekseon_AjaxifiedProductEdit>
10
  </modules>
11
  <global>
12
  <blocks>
13
  <alekseon_ajaxifiedProductEdit>
14
  <class>Alekseon_AjaxifiedProductEdit_Block</class>
15
  </alekseon_ajaxifiedProductEdit>
16
  </blocks>
17
  <models>
18
  <alekseon_ajaxifiedProductEdit>
19
  <class>Alekseon_AjaxifiedProductEdit_Model</class>
20
  <resourceModel>alekseon_ajaxifiedproductedit_resource</resourceModel>
21
  </alekseon_ajaxifiedProductEdit>
22
  <alekseon_ajaxifiedproductedit_resource>
23
  <class>Alekseon_AjaxifiedProductEdit_Model_Resource</class>
24
  <gridview>
25
  <table>alekseon_ajaxifiedproductedit_gridview</table>
26
  </gridview>
27
  <gridview_attributeColumns>
28
  <table>alekseon_ajaxifiedproductedit_gridview_attributeColumns</table>
29
  </gridview_attributeColumns>
30
  </entities>
31
  </alekseon_ajaxifiedproductedit_resource>
32
  </models>
33
  <helpers>
34
  <alekseon_ajaxifiedProductEdit>
35
  <class>Alekseon_AjaxifiedProductEdit_Helper</class>
36
  </alekseon_ajaxifiedProductEdit>
37
  </helpers>
38
  <resources>
39
  <alekseon_ajaxifiedproductedit_setup>
40
  <setup>
41
  <module>Alekseon_AjaxifiedProductEdit</module>
42
  <class>Mage_Core_Model_Resource_Setup</class>
43
  </setup>
44
  </alekseon_ajaxifiedproductedit_setup>
45
  </resources>
46
  </global>
47
  <adminhtml>
48
  <events>
49
  <controller_action_predispatch>
50
  <observers>
51
  <alekseon_adminNotification>
52
  <class>alekseon_ajaxifiedProductEdit/alekseonAdminNotification_observer</class>
53
  <method>preDispatch</method>
54
  </alekseon_adminNotification>
55
  </observers>
56
  </controller_action_predispatch>
57
  </events>
58
  </adminhtml>
59
  <admin>
60
  <routers>
61
  <adminhtml>
62
  <args>
63
  <modules>
64
  <alekseon_ajaxifiedProductEdit before="Mage_Adminhtml">Alekseon_AjaxifiedProductEdit_Adminhtml</alekseon_ajaxifiedProductEdit>
65
  </modules>
66
  </args>
67
  </adminhtml>
68
  </routers>
69
  </admin>
70
  <adminhtml>
71
  <layout>
72
  <updates>
73
  <alekseon_ajaxifiedProductEdit>
74
  <file>alekseon/ajaxifiedProductEdit.xml</file>
75
  </alekseon_ajaxifiedProductEdit>
76
  </updates>
77
  </layout>
78
  </adminhtml>
79
  <default>
80
  <alekseon_adminNotification>
81
  <general>
82
  <enabled>1</enabled>
83
  <frequency>12</frequency>
84
  </general>
85
  </alekseon_adminNotification>
86
  <alekseon_ajaxifiedProductEdit>
87
  <general>
88
  <enabled>1</enabled>
89
  </general>
90
  <advanced>
91
  <refresh_row>1</refresh_row>
92
  </advanced>
93
  </alekseon_ajaxifiedProductEdit>
94
  </default>
95
+ <?xml version="1.0"?>
96
  * @author Marcin Frymark
97
  * @email contact@alekseon.com
98
  * @company Alekseon
99
  * @website www.alekseon.com
100
  */
 
101
  <modules>
102
  <Alekseon_AjaxifiedProductEdit>
103
  <version>0.1.1</version>
104
  </Alekseon_AjaxifiedProductEdit>
105
  </modules>
106
  <global>
107
  <blocks>
108
  <alekseon_ajaxifiedProductEdit>
109
  <class>Alekseon_AjaxifiedProductEdit_Block</class>
110
  </alekseon_ajaxifiedProductEdit>
111
  </blocks>
112
  <models>
113
  <alekseon_ajaxifiedProductEdit>
114
  <class>Alekseon_AjaxifiedProductEdit_Model</class>
115
  <resourceModel>alekseon_ajaxifiedproductedit_resource</resourceModel>
116
  </alekseon_ajaxifiedProductEdit>
117
  <alekseon_ajaxifiedproductedit_resource>
118
  <class>Alekseon_AjaxifiedProductEdit_Model_Resource</class>
119
  <gridview>
120
  <table>alekseon_ajaxifiedproductedit_gridview</table>
121
  </gridview>
122
  <gridview_attributeColumns>
123
  <table>alekseon_ajaxifiedproductedit_gridview_attributeColumns</table>
124
  </gridview_attributeColumns>
125
  </entities>
126
  </alekseon_ajaxifiedproductedit_resource>
127
  </models>
128
  <helpers>
129
  <alekseon_ajaxifiedProductEdit>
130
  <class>Alekseon_AjaxifiedProductEdit_Helper</class>
131
  </alekseon_ajaxifiedProductEdit>
132
  </helpers>
133
  <resources>
134
  <alekseon_ajaxifiedproductedit_setup>
135
  <setup>
136
  <module>Alekseon_AjaxifiedProductEdit</module>
137
  <class>Mage_Core_Model_Resource_Setup</class>
138
  </setup>
139
  </alekseon_ajaxifiedproductedit_setup>
140
  </resources>
141
  </global>
142
  <adminhtml>
143
  <layout>
144
  <updates>
145
  <alekseon_ajaxifiedProductEdit>
146
  <file>alekseon/ajaxifiedProductEdit.xml</file>
147
  </alekseon_ajaxifiedProductEdit>
148
  </updates>
149
  </layout>
150
  <events>
151
  <controller_action_predispatch>
152
  <observers>
153
  <alekseon_adminNotification>
154
  <class>alekseon_ajaxifiedProductEdit/alekseonAdminNotification_observer</class>
155
  <method>preDispatch</method>
156
  </alekseon_adminNotification>
157
  </observers>
158
  </controller_action_predispatch>
159
  </events>
160
  </adminhtml>
161
  <admin>
162
  <routers>
163
  <adminhtml>
164
  <args>
165
  <modules>
166
  <alekseon_ajaxifiedProductEdit before="Mage_Adminhtml">Alekseon_AjaxifiedProductEdit_Adminhtml</alekseon_ajaxifiedProductEdit>
167
  </modules>
168
  </args>
169
  </adminhtml>
170
  </routers>
171
  </admin>
172
  <default>
173
  <alekseon_adminNotification>
174
  <general>
175
  <enabled>1</enabled>
176
  <frequency>12</frequency>
177
  </general>
178
  </alekseon_adminNotification>
179
  <alekseon_ajaxifiedProductEdit>
180
  <general>
181
  <enabled>1</enabled>
182
  </general>
183
  <advanced>
184
  <refresh_row>1</refresh_row>
185
  </advanced>
186
  </alekseon_ajaxifiedProductEdit>
187
  </default>
app/code/community/Alekseon/AjaxifiedProductEdit/sql/alekseon_ajaxifiedproductedit_setup/mysql4-upgrade-0.1.0-0.1.1.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @author Marcin Frymark
4
+ * @email contact@alekseon.com
5
+ * @company Alekseon
6
+ * @website www.alekseon.com
7
+ */
8
+
9
+ $installer = $this;
10
+ $installer->startSetup();
11
+ $installer->run("
12
+ ALTER TABLE `{$this->getTable('alekseon_ajaxifiedProductEdit/gridview')}` CHANGE `enable` `enable` tinyint(1) UNSIGNED DEFAULT 0;
13
+ ALTER TABLE `{$this->getTable('alekseon_ajaxifiedProductEdit/gridview_attributeColumns')}` CHANGE `editable` `editable` tinyint(1) UNSIGNED DEFAULT 0;
14
+ ");
15
+ $installer->endSetup();
app/design/adminhtml/default/default/template/alekseon/ajaxifiedProductEdit/grid/input/date.phtml CHANGED
@@ -1 +1 @@
1
- <?php
2
  * @author Marcin Frymark
3
  * @email contact@alekseon.com
4
  * @company Alekseon
5
  * @website www.alekseon.com
6
  */
7
  <?php $disabled = 'disabled="disabled"' ?>
8
  <?php $dateElement = new Varien_Data_Form_Element_Date() ?>
9
  <?php $dateElement->setFormat(Mage::app()->getLocale()->getDateFormatWithLongYear()) ?>
10
  <?php $dateElement->setValue($this->getValue()) ?>
11
  <?php $outputFormat = $dateElement->getFormat() ?>
12
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $dateElement->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" />
13
  <?php if (!$this->getDisabled()): ?>
14
  <img src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" alt="" class="v-middle" id="date_<?php echo $this->getName() ?>" title="Select Date" style="">
15
  <?php endif ?>
16
  <?php $displayFormat = Varien_Date::convertZendToStrFtime($outputFormat, true, false); ?>
17
  <script type="text/javascript">
18
  //<![CDATA[
19
  Calendar.setup({
20
  inputField: "<?php echo $this->getName() ?>",
21
  ifFormat: "<?php echo $displayFormat ?>",
22
  showsTime: false,
23
  button: "date_<?php echo $this->getName() ?>",
24
  align: "Bl",
25
  singleClick : true
26
  });
27
  //]]>
28
  </script>
 
29
  * @author Marcin Frymark
30
  * @email contact@alekseon.com
31
  * @company Alekseon
32
  * @website www.alekseon.com
33
  */
34
  <?php $disabled = 'disabled="disabled"' ?>
35
  <?php $dateElement = new Varien_Data_Form_Element_Date() ?>
36
  <?php $dateElement->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT)) ?>
37
  <?php $dateElement->setValue($this->getValue()) ?>
38
  <?php $outputFormat = $dateElement->getFormat() ?>
39
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $dateElement->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" />
40
  <?php if (!$this->getDisabled()): ?>
41
  <img src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" alt="" class="v-middle" id="date_<?php echo $this->getName() ?>" title="Select Date" style="">
42
  <?php endif ?>
43
  <?php $displayFormat = Varien_Date::convertZendToStrFtime($outputFormat, true, false); ?>
44
  <script type="text/javascript">
45
  //<![CDATA[
46
  Calendar.setup({
47
  inputField: "<?php echo $this->getName() ?>",
48
  ifFormat: "<?php echo $displayFormat ?>",
49
  showsTime: false,
50
  button: "date_<?php echo $this->getName() ?>",
51
  align: "Bl",
52
  singleClick : true
53
  });
54
  //]]>
55
  </script>
 
1
  * @author Marcin Frymark
2
  * @email contact@alekseon.com
3
  * @company Alekseon
4
  * @website www.alekseon.com
5
  */
6
  <?php $disabled = 'disabled="disabled"' ?>
7
  <?php $dateElement = new Varien_Data_Form_Element_Date() ?>
8
  <?php $dateElement->setFormat(Mage::app()->getLocale()->getDateFormatWithLongYear()) ?>
9
  <?php $dateElement->setValue($this->getValue()) ?>
10
  <?php $outputFormat = $dateElement->getFormat() ?>
11
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $dateElement->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" />
12
  <?php if (!$this->getDisabled()): ?>
13
  <img src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" alt="" class="v-middle" id="date_<?php echo $this->getName() ?>" title="Select Date" style="">
14
  <?php endif ?>
15
  <?php $displayFormat = Varien_Date::convertZendToStrFtime($outputFormat, true, false); ?>
16
  <script type="text/javascript">
17
  //<![CDATA[
18
  Calendar.setup({
19
  inputField: "<?php echo $this->getName() ?>",
20
  ifFormat: "<?php echo $displayFormat ?>",
21
  showsTime: false,
22
  button: "date_<?php echo $this->getName() ?>",
23
  align: "Bl",
24
  singleClick : true
25
  });
26
  //]]>
27
  </script>
28
+ <?php
29
  * @author Marcin Frymark
30
  * @email contact@alekseon.com
31
  * @company Alekseon
32
  * @website www.alekseon.com
33
  */
34
  <?php $disabled = 'disabled="disabled"' ?>
35
  <?php $dateElement = new Varien_Data_Form_Element_Date() ?>
36
  <?php $dateElement->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT)) ?>
37
  <?php $dateElement->setValue($this->getValue()) ?>
38
  <?php $outputFormat = $dateElement->getFormat() ?>
39
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $dateElement->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" />
40
  <?php if (!$this->getDisabled()): ?>
41
  <img src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" alt="" class="v-middle" id="date_<?php echo $this->getName() ?>" title="Select Date" style="">
42
  <?php endif ?>
43
  <?php $displayFormat = Varien_Date::convertZendToStrFtime($outputFormat, true, false); ?>
44
  <script type="text/javascript">
45
  //<![CDATA[
46
  Calendar.setup({
47
  inputField: "<?php echo $this->getName() ?>",
48
  ifFormat: "<?php echo $displayFormat ?>",
49
  showsTime: false,
50
  button: "date_<?php echo $this->getName() ?>",
51
  align: "Bl",
52
  singleClick : true
53
  });
54
  //]]>
55
  </script>
app/design/adminhtml/default/default/template/alekseon/ajaxifiedProductEdit/grid/input/select.phtml CHANGED
@@ -7,6 +7,19 @@
7
  */
8
  ?>
9
  <?php $options = $this->getColumn()->getOptions() ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <?php $disabled = '' ?>
11
  <?php if ($this->getDisabled()): ?>
12
  <?php $disabled = 'disabled="disabled"' ?>
@@ -15,7 +28,7 @@
15
  <select name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" >
16
  <?php if ($options): ?>
17
  <?php foreach($options as $optionsValue => $label): ?>
18
- <?php if ($this->getValue() == $optionsValue): ?>
19
  <option value="<?php echo $optionsValue ?>" selected="selected"><?php echo $label ?></option>
20
  <?php else: ?>
21
  <option value="<?php echo $optionsValue ?>"><?php echo $label ?></option>
7
  */
8
  ?>
9
  <?php $options = $this->getColumn()->getOptions() ?>
10
+ <?php if (!isset($options[$this->getValue()])): ?>
11
+ <?php
12
+ /*
13
+ its because of magento "bug", when grid is filtered and sorded by same attibute, and this attribute has options managed from BO (ex. color),
14
+ then value of this attibute is label, instead of option id :(
15
+ Its because of function addOptionValueToCollection in class Mage_Eav_Model_Resource_Entity_Attribute_Option:
16
+ last joinLeft in this method its not needed, because atribute value was already joined by filters, so this columns is joined twice, and its a reason of issue
17
+ */
18
+ ?>
19
+ <?php $selectOptionByLabel = true ?>
20
+ <?php else: ?>
21
+ <?php $selectOptionByLabel = false ?>
22
+ <?php endif ?>
23
  <?php $disabled = '' ?>
24
  <?php if ($this->getDisabled()): ?>
25
  <?php $disabled = 'disabled="disabled"' ?>
28
  <select name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)" >
29
  <?php if ($options): ?>
30
  <?php foreach($options as $optionsValue => $label): ?>
31
+ <?php if (($this->getValue() == $optionsValue && !$selectOptionByLabel) || ($this->getValue() == $label && $selectOptionByLabel)): ?>
32
  <option value="<?php echo $optionsValue ?>" selected="selected"><?php echo $label ?></option>
33
  <?php else: ?>
34
  <option value="<?php echo $optionsValue ?>"><?php echo $label ?></option>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ajaxified_product_edit</name>
4
- <version>0.1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>This module will help you manage the product attributes.</description>
11
  <notes>This module will help you manage the product attributes.</notes>
12
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
13
- <date>2014-04-03</date>
14
- <time>14:39:03</time>
15
- <contents><target name="magecommunity"><dir name="Alekseon"><dir name="AjaxifiedProductEdit"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridView"><dir name="Grid"><dir name="Renderer"><file name="Input.php" hash="76d280c9180820166361143f057fabce"/><file name="SaveButton.php" hash="881214c7b1f657d976c9692231567f05"/></dir></dir><file name="Grid.php" hash="a511a4652fa31f2b15f71cc6b14bf6fb"/><dir name="Manager"><dir name="Edit"><file name="Form.php" hash="5a607b626d7aea903f9bbeca066d0803"/><dir name="Tabs"><file name="General.php" hash="baa7871b27568f2bb8f6f8914aee0dd8"/><dir name="ManageColumns"><file name="Attributes.php" hash="5a2e20af80d8171174da915228c3a932"/></dir><file name="ManageColumns.php" hash="36fbd89f31f2ca5e4f5198c329b513ac"/></dir><file name="Tabs.php" hash="9ad143b7b77e307b95f30b87c4e20af1"/></dir><file name="Edit.php" hash="2cc5679f87e5c63b6196898b0cdcd81e"/><file name="Grid.php" hash="6ce65a1fe5f5e6c9b47f926c1d130fe8"/></dir><file name="Manager.php" hash="6f93b82e166d0e65b4b279a25c3958cc"/></dir><file name="GridView.php" hash="dca5276d52cd0f23af91fc4ecd72c236"/><file name="GridViewSwitcher.php" hash="01f6c060326f05ddbf5d566d81a14dd6"/><dir name="Store"><file name="Switcher.php" hash="90287308aeda8573a39b8cff0677e084"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AlekseonLogo.php" hash="2d37ae3ae541c76cf51c8b2715f9780d"/><file name="AlekseonNotification.php" hash="b84660a0e2fe32f44744b93ff6cb1ae1"/><file name="ManageGridViewsButton.php" hash="7ffe45be1540f827c0223e322404dba2"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8355d698c9eadb35859d9df482361718"/></dir><dir name="Model"><dir name="AlekseonAdminNotification"><file name="Feed.php" hash="c7379e4b4b86c0f6a95dbf38df7232b5"/><file name="Observer.php" hash="9e6aab48c6c57254ad304e7d4053fe8e"/></dir><file name="GridView.php" hash="8486fc0283216f3cbba04275d3dff67f"/><dir name="Resource"><dir name="GridView"><dir name="Attribute"><file name="Collection.php" hash="e81a0072797932cb0e68e1458f2e057a"/></dir><file name="Collection.php" hash="103a52eb43697774f4b4a1a7948ac20a"/></dir><file name="GridView.php" hash="d5f19460fd18a8292848eb974ee67b4b"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cache.php" hash="8e3b12fe3a60e4fa2be4d0e3c956fcdf"/></dir><dir name="Source"><file name="ProductAttributes.php" hash="6d685822dd377e403ff9b35f8107c63d"/><file name="UserRole.php" hash="68411f383ed71b48452bac3f575a35dc"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="AjaxifiedProductEdit"><file name="ManageGridViewsController.php" hash="40388bf41d0885b7650a37949556fba3"/></dir><file name="AjaxifiedProductEditController.php" hash="ef16fd76927a6d5209318e25f2e6a8ce"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="50a707a1fc35b129b67f1e124fdb9ade"/><file name="config.xml" hash="c67046dddd6f6acb0d6f0fcca24b9092"/><file name="logging.xml" hash="2876868df1ebedfd3f7fe773fdbed0c0"/><file name="system.xml" hash="3eb71b428a0ce0e1d352538d6d4a642c"/></dir><dir name="sql"><dir name="alekseon_ajaxifiedproductedit_setup"><file name="mysql4-install-0.1.0.php" hash="fe315b9f9c6a75439bfc1d164e07f39b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_AjaxifiedProductEdit.xml" hash="f651f22f2378cddd5fccdba04c6fd758"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="alekseon"><dir name="ajaxifiedProductEdit"><dir name="grid"><dir name="input"><file name="boolean.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="date.phtml" hash="e7d702354ec4d129928ae66acd3a905a"/><file name="hidden.phtml" hash="f9c98f36fa00488c1ea671b219023557"/><file name="multiselect.phtml" hash="7d634e663647cc313c6ac3becba4281c"/><file name="price.phtml" hash="34c4ee0a56a5ff069ec42d538fea74f3"/><file name="save.phtml" hash="2023ca4a0f48a6ca83d9799bed134e64"/><file name="select.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="text.phtml" hash="ca59e8eaa2ed388152a3be547ed7f023"/><file name="textarea.phtml" hash="c8788dd3b628c5ef8cdb0faf6581e9ce"/><file name="usedefault.phtml" hash="82f478a8aba513dab232740abc32c731"/></dir></dir><file name="gridView.phtml" hash="540624c3b84074dce7085eab4719ce98"/><file name="gridViewSwitcher.phtml" hash="2269d77a164d46f59c5567235814882d"/><dir name="store"><file name="switcher.phtml" hash="03c8037a7915b663814419842095473f"/></dir></dir></dir></dir><dir name="layout"><dir name="alekseon"><file name="ajaxifiedProductEdit.xml" hash="3cbe92362cc6f89f35915ebc85cc893a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><dir name="alekseon"><file name="ajaxifiedProductEdit.js" hash="5a111780b3e03327972e2b6826178dbd"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ajaxified_product_edit</name>
4
+ <version>0.1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>This module will help you manage the product attributes.</description>
11
  <notes>This module will help you manage the product attributes.</notes>
12
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
13
+ <date>2014-05-22</date>
14
+ <time>08:37:45</time>
15
+ <contents><target name="magecommunity"><dir name="Alekseon"><dir name="AjaxifiedProductEdit"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridView"><dir name="Grid"><dir name="Renderer"><file name="Input.php" hash="76d280c9180820166361143f057fabce"/><file name="SaveButton.php" hash="881214c7b1f657d976c9692231567f05"/></dir></dir><file name="Grid.php" hash="a511a4652fa31f2b15f71cc6b14bf6fb"/><dir name="Manager"><dir name="Edit"><file name="Form.php" hash="5a607b626d7aea903f9bbeca066d0803"/><dir name="Tabs"><file name="General.php" hash="baa7871b27568f2bb8f6f8914aee0dd8"/><dir name="ManageColumns"><file name="Attributes.php" hash="5a2e20af80d8171174da915228c3a932"/></dir><file name="ManageColumns.php" hash="36fbd89f31f2ca5e4f5198c329b513ac"/></dir><file name="Tabs.php" hash="9ad143b7b77e307b95f30b87c4e20af1"/></dir><file name="Edit.php" hash="2cc5679f87e5c63b6196898b0cdcd81e"/><file name="Grid.php" hash="6ce65a1fe5f5e6c9b47f926c1d130fe8"/></dir><file name="Manager.php" hash="6f93b82e166d0e65b4b279a25c3958cc"/></dir><file name="GridView.php" hash="dca5276d52cd0f23af91fc4ecd72c236"/><file name="GridViewSwitcher.php" hash="01f6c060326f05ddbf5d566d81a14dd6"/><dir name="Store"><file name="Switcher.php" hash="90287308aeda8573a39b8cff0677e084"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AlekseonLogo.php" hash="2d37ae3ae541c76cf51c8b2715f9780d"/><file name="AlekseonNotification.php" hash="b84660a0e2fe32f44744b93ff6cb1ae1"/><file name="ManageGridViewsButton.php" hash="7ffe45be1540f827c0223e322404dba2"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8355d698c9eadb35859d9df482361718"/></dir><dir name="Model"><dir name="AlekseonAdminNotification"><file name="Feed.php" hash="e4393ad2cbe82fd74d7e4ef0b36e773a"/><file name="Observer.php" hash="9e6aab48c6c57254ad304e7d4053fe8e"/></dir><file name="GridView.php" hash="8486fc0283216f3cbba04275d3dff67f"/><dir name="Resource"><dir name="GridView"><dir name="Attribute"><file name="Collection.php" hash="e81a0072797932cb0e68e1458f2e057a"/></dir><file name="Collection.php" hash="103a52eb43697774f4b4a1a7948ac20a"/></dir><file name="GridView.php" hash="d5f19460fd18a8292848eb974ee67b4b"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cache.php" hash="8e3b12fe3a60e4fa2be4d0e3c956fcdf"/></dir><dir name="Source"><file name="ProductAttributes.php" hash="6d685822dd377e403ff9b35f8107c63d"/><file name="UserRole.php" hash="68411f383ed71b48452bac3f575a35dc"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="AjaxifiedProductEdit"><file name="ManageGridViewsController.php" hash="244782270352cc65748ef3a26f295085"/></dir><file name="AjaxifiedProductEditController.php" hash="ef16fd76927a6d5209318e25f2e6a8ce"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="50a707a1fc35b129b67f1e124fdb9ade"/><file name="config.xml" hash="0da187d7cea2cf1a466d074ff9f34772"/><file name="logging.xml" hash="2876868df1ebedfd3f7fe773fdbed0c0"/><file name="system.xml" hash="3eb71b428a0ce0e1d352538d6d4a642c"/></dir><dir name="sql"><dir name="alekseon_ajaxifiedproductedit_setup"><file name="mysql4-install-0.1.0.php" hash="fe315b9f9c6a75439bfc1d164e07f39b"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="8e4b5ab8375b5d45ade28d90369a33b9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_AjaxifiedProductEdit.xml" hash="f651f22f2378cddd5fccdba04c6fd758"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="alekseon"><dir name="ajaxifiedProductEdit"><dir name="grid"><dir name="input"><file name="boolean.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="date.phtml" hash="2c02b1dfb82d0227db0d6d43c23d4877"/><file name="hidden.phtml" hash="f9c98f36fa00488c1ea671b219023557"/><file name="multiselect.phtml" hash="7d634e663647cc313c6ac3becba4281c"/><file name="price.phtml" hash="34c4ee0a56a5ff069ec42d538fea74f3"/><file name="save.phtml" hash="2023ca4a0f48a6ca83d9799bed134e64"/><file name="select.phtml" hash="b8338e305a4630230f1cfc486cbe1f08"/><file name="text.phtml" hash="ca59e8eaa2ed388152a3be547ed7f023"/><file name="textarea.phtml" hash="c8788dd3b628c5ef8cdb0faf6581e9ce"/><file name="usedefault.phtml" hash="82f478a8aba513dab232740abc32c731"/></dir></dir><file name="gridView.phtml" hash="540624c3b84074dce7085eab4719ce98"/><file name="gridViewSwitcher.phtml" hash="2269d77a164d46f59c5567235814882d"/><dir name="store"><file name="switcher.phtml" hash="03c8037a7915b663814419842095473f"/></dir></dir></dir></dir><dir name="layout"><dir name="alekseon"><file name="ajaxifiedProductEdit.xml" hash="3cbe92362cc6f89f35915ebc85cc893a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><dir name="alekseon"><file name="ajaxifiedProductEdit.js" hash="5a111780b3e03327972e2b6826178dbd"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>