Version Notes
Sort By JS error fix on listing page
Download this release
Release Info
| Developer | Hardik Gajjar |
| Extension | HardikAjaxNav |
| Version | 1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.1
- app/code/local/Hardik/Ajaxnav/etc/config.xml +1 -1
- js/ajaxnav/ajaxnav.js +7 -7
- package.xml +4 -4
app/code/local/Hardik/Ajaxnav/etc/config.xml
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
<config>
|
| 8 |
<modules>
|
| 9 |
<Hardik_Ajaxnav>
|
| 10 |
-
<version>1.0.
|
| 11 |
</Hardik_Ajaxnav>
|
| 12 |
</modules>
|
| 13 |
<global>
|
| 7 |
<config>
|
| 8 |
<modules>
|
| 9 |
<Hardik_Ajaxnav>
|
| 10 |
+
<version>1.0.1</version>
|
| 11 |
</Hardik_Ajaxnav>
|
| 12 |
</modules>
|
| 13 |
<global>
|
js/ajaxnav/ajaxnav.js
CHANGED
|
@@ -5,32 +5,32 @@ var ajaxnav = {
|
|
| 5 |
this.clickableObservers = clickableObservers;
|
| 6 |
this.changeableObservers = changeableObservers;
|
| 7 |
|
| 8 |
-
|
| 9 |
this.bindEvents();
|
| 10 |
},
|
| 11 |
-
|
| 12 |
var self = this;
|
| 13 |
-
|
| 14 |
var url = e.readAttribute('href');
|
| 15 |
self.setUrl(url, e);
|
| 16 |
-
})
|
| 17 |
$$(self.changeableObservers + ' option').each(function(e){
|
| 18 |
var value = e.readAttribute('value');
|
| 19 |
self.setValue(value, e);
|
| 20 |
});
|
| 21 |
},
|
| 22 |
-
setUrl: function(url, e) {
|
| 23 |
if (url.search('ajax=true') == -1 && url.indexOf('?') == -1)
|
| 24 |
e.writeAttribute('href', url + '?ajax=true');
|
| 25 |
else if (url.search('ajax=true') == -1 && url.indexOf('?') !== -1)
|
| 26 |
e.writeAttribute('href', url + '&ajax=true');
|
| 27 |
-
}
|
| 28 |
setValue: function(value, e) {
|
| 29 |
if (value.search('ajax=true') == -1 && value.indexOf('?') == -1)
|
| 30 |
e.writeAttribute('value', value + '?ajax=true');
|
| 31 |
else if (value.search('ajax=true') == -1 && value.indexOf('?') !== -1)
|
| 32 |
e.writeAttribute('value', value + '&ajax=true');
|
| 33 |
-
}
|
| 34 |
bindEvents: function () {
|
| 35 |
var self = this;
|
| 36 |
$$(self.clickableObservers).each(function(e){
|
| 5 |
this.clickableObservers = clickableObservers;
|
| 6 |
this.changeableObservers = changeableObservers;
|
| 7 |
|
| 8 |
+
this.setUrls();
|
| 9 |
this.bindEvents();
|
| 10 |
},
|
| 11 |
+
setUrls: function() {
|
| 12 |
var self = this;
|
| 13 |
+
/*$$(self.clickableObservers).each(function(e){
|
| 14 |
var url = e.readAttribute('href');
|
| 15 |
self.setUrl(url, e);
|
| 16 |
+
});*/
|
| 17 |
$$(self.changeableObservers + ' option').each(function(e){
|
| 18 |
var value = e.readAttribute('value');
|
| 19 |
self.setValue(value, e);
|
| 20 |
});
|
| 21 |
},
|
| 22 |
+
/*setUrl: function(url, e) {
|
| 23 |
if (url.search('ajax=true') == -1 && url.indexOf('?') == -1)
|
| 24 |
e.writeAttribute('href', url + '?ajax=true');
|
| 25 |
else if (url.search('ajax=true') == -1 && url.indexOf('?') !== -1)
|
| 26 |
e.writeAttribute('href', url + '&ajax=true');
|
| 27 |
+
},*/
|
| 28 |
setValue: function(value, e) {
|
| 29 |
if (value.search('ajax=true') == -1 && value.indexOf('?') == -1)
|
| 30 |
e.writeAttribute('value', value + '?ajax=true');
|
| 31 |
else if (value.search('ajax=true') == -1 && value.indexOf('?') !== -1)
|
| 32 |
e.writeAttribute('value', value + '&ajax=true');
|
| 33 |
+
},
|
| 34 |
bindEvents: function () {
|
| 35 |
var self = this;
|
| 36 |
$$(self.clickableObservers).each(function(e){
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>HardikAjaxNav</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Provides full ajax catalog layered navigation on product listing page as well as search results page.</summary>
|
| 10 |
<description>Provides full ajax catalog layered navigation on product listing page as well as search results page.</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>Hardik Gajjar</name><user>hardik_krishinc</user><email>hardik.gajjar@krishinc.com</email></author></authors>
|
| 13 |
<date>2013-07-13</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Hardik_Ajaxnav.xml" hash="7dbe4179ff7bce21322b47eec2d1f4b9"/></dir></target><target name="magelocal"><dir name="Hardik"><dir name="Ajaxnav"><dir name="controllers"><dir name="Catalog"><file name="CategoryController.php" hash="3acce078f816f6b3561ca713d50d6335"/><dir name="Product"><file name="CompareController.php" hash="d4a9bb84eb46034cbe48a6f71cf44025"/></dir></dir><dir name="Catalogsearch"><file name="ResultController.php" hash="e35ab6ce644db4e1904589b6f5e03eda"/></dir></dir><dir name="etc"><file name="config.xml" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>HardikAjaxNav</name>
|
| 4 |
+
<version>1.0.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Provides full ajax catalog layered navigation on product listing page as well as search results page.</summary>
|
| 10 |
<description>Provides full ajax catalog layered navigation on product listing page as well as search results page.</description>
|
| 11 |
+
<notes>Sort By JS error fix on listing page</notes>
|
| 12 |
<authors><author><name>Hardik Gajjar</name><user>hardik_krishinc</user><email>hardik.gajjar@krishinc.com</email></author></authors>
|
| 13 |
<date>2013-07-13</date>
|
| 14 |
+
<time>09:18:05</time>
|
| 15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Hardik_Ajaxnav.xml" hash="7dbe4179ff7bce21322b47eec2d1f4b9"/></dir></target><target name="magelocal"><dir name="Hardik"><dir name="Ajaxnav"><dir name="controllers"><dir name="Catalog"><file name="CategoryController.php" hash="3acce078f816f6b3561ca713d50d6335"/><dir name="Product"><file name="CompareController.php" hash="d4a9bb84eb46034cbe48a6f71cf44025"/></dir></dir><dir name="Catalogsearch"><file name="ResultController.php" hash="e35ab6ce644db4e1904589b6f5e03eda"/></dir></dir><dir name="etc"><file name="config.xml" hash="7ab971f7dbeb8270f2c264a49ef8b7da"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ajaxnav.xml" hash="fb40a05f8dce865cfb0696e0c4fd125c"/></dir><dir name="template"><dir name="ajaxnav"><file name="ajax.phtml" hash="3dc29022a740e93be58af56b54eb01d5"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="ajaxnav"><file name="ajaxnav.js" hash="9a6506a590641d49d4aa65613ec536fd"/></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
