Version Notes
IE8 issue fixed.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Dolphin_ScrollUp |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.2 to 1.0.3
app/code/community/Dolphin/Scrollup/etc/adminhtml.xml
CHANGED
|
@@ -8,10 +8,14 @@
|
|
| 8 |
<children>
|
| 9 |
<config>
|
| 10 |
<children>
|
| 11 |
-
<
|
| 12 |
-
<
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
</children>
|
| 16 |
</config>
|
| 17 |
</children>
|
| 8 |
<children>
|
| 9 |
<config>
|
| 10 |
<children>
|
| 11 |
+
<design>
|
| 12 |
+
<children>
|
| 13 |
+
<dlscrollup translate="title" module="dlscrollup">
|
| 14 |
+
<title>Page Scroll Up</title>
|
| 15 |
+
<sort_order>0</sort_order>
|
| 16 |
+
</dlscrollup>
|
| 17 |
+
</children>
|
| 18 |
+
</design>
|
| 19 |
</children>
|
| 20 |
</config>
|
| 21 |
</children>
|
app/code/community/Dolphin/Scrollup/etc/system.xml
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
<sort_order>1</sort_order>
|
| 19 |
<show_in_default>1</show_in_default>
|
| 20 |
<show_in_website>1</show_in_website>
|
| 21 |
-
<show_in_store>
|
| 22 |
<comment>page scroll will show on all pages.</comment>
|
| 23 |
</enabled>
|
| 24 |
<scrollduration>
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
<sort_order>10</sort_order>
|
| 28 |
<show_in_default>1</show_in_default>
|
| 29 |
<show_in_website>1</show_in_website>
|
| 30 |
-
<show_in_store>
|
| 31 |
<comment>page scroll speed.(Integer Value)</comment>
|
| 32 |
</scrollduration>
|
| 33 |
<scrolloffset>
|
|
@@ -36,7 +36,7 @@
|
|
| 36 |
<sort_order>20</sort_order>
|
| 37 |
<show_in_default>1</show_in_default>
|
| 38 |
<show_in_website>1</show_in_website>
|
| 39 |
-
<show_in_store>
|
| 40 |
</scrolloffset>
|
| 41 |
<scrollactiveoverlay>
|
| 42 |
<label>Page Scroll Point</label>
|
|
@@ -44,7 +44,7 @@
|
|
| 44 |
<sort_order>40</sort_order>
|
| 45 |
<show_in_default>1</show_in_default>
|
| 46 |
<show_in_website>1</show_in_website>
|
| 47 |
-
<show_in_store>
|
| 48 |
<comment>from where scroll top button will show.(Integer Value)</comment>
|
| 49 |
</scrollactiveoverlay>
|
| 50 |
<elementtype>
|
|
@@ -54,7 +54,7 @@
|
|
| 54 |
<sort_order>50</sort_order>
|
| 55 |
<show_in_default>1</show_in_default>
|
| 56 |
<show_in_website>1</show_in_website>
|
| 57 |
-
<show_in_store>
|
| 58 |
<comment>Scroll Top Element Style</comment>
|
| 59 |
</elementtype>
|
| 60 |
<scrolltoptext>
|
|
@@ -63,7 +63,7 @@
|
|
| 63 |
<sort_order>60</sort_order>
|
| 64 |
<show_in_default>1</show_in_default>
|
| 65 |
<show_in_website>1</show_in_website>
|
| 66 |
-
<show_in_store>
|
| 67 |
<comment>Page Scroll Link Text for link type. Use as title for other elements(Image, Pill, Tab)</comment>
|
| 68 |
</scrolltoptext>
|
| 69 |
<scrolltopimage>
|
| 18 |
<sort_order>1</sort_order>
|
| 19 |
<show_in_default>1</show_in_default>
|
| 20 |
<show_in_website>1</show_in_website>
|
| 21 |
+
<show_in_store>1</show_in_store>
|
| 22 |
<comment>page scroll will show on all pages.</comment>
|
| 23 |
</enabled>
|
| 24 |
<scrollduration>
|
| 27 |
<sort_order>10</sort_order>
|
| 28 |
<show_in_default>1</show_in_default>
|
| 29 |
<show_in_website>1</show_in_website>
|
| 30 |
+
<show_in_store>1</show_in_store>
|
| 31 |
<comment>page scroll speed.(Integer Value)</comment>
|
| 32 |
</scrollduration>
|
| 33 |
<scrolloffset>
|
| 36 |
<sort_order>20</sort_order>
|
| 37 |
<show_in_default>1</show_in_default>
|
| 38 |
<show_in_website>1</show_in_website>
|
| 39 |
+
<show_in_store>1</show_in_store>
|
| 40 |
</scrolloffset>
|
| 41 |
<scrollactiveoverlay>
|
| 42 |
<label>Page Scroll Point</label>
|
| 44 |
<sort_order>40</sort_order>
|
| 45 |
<show_in_default>1</show_in_default>
|
| 46 |
<show_in_website>1</show_in_website>
|
| 47 |
+
<show_in_store>1</show_in_store>
|
| 48 |
<comment>from where scroll top button will show.(Integer Value)</comment>
|
| 49 |
</scrollactiveoverlay>
|
| 50 |
<elementtype>
|
| 54 |
<sort_order>50</sort_order>
|
| 55 |
<show_in_default>1</show_in_default>
|
| 56 |
<show_in_website>1</show_in_website>
|
| 57 |
+
<show_in_store>1</show_in_store>
|
| 58 |
<comment>Scroll Top Element Style</comment>
|
| 59 |
</elementtype>
|
| 60 |
<scrolltoptext>
|
| 63 |
<sort_order>60</sort_order>
|
| 64 |
<show_in_default>1</show_in_default>
|
| 65 |
<show_in_website>1</show_in_website>
|
| 66 |
+
<show_in_store>1</show_in_store>
|
| 67 |
<comment>Page Scroll Link Text for link type. Use as title for other elements(Image, Pill, Tab)</comment>
|
| 68 |
</scrolltoptext>
|
| 69 |
<scrolltopimage>
|
js/dolphin/scrollup/DLSU.js
CHANGED
|
@@ -1,38 +1,44 @@
|
|
| 1 |
-
DLSU = Class.create();
|
| 2 |
-
DLSU.prototype = {
|
| 3 |
-
initialize: function(id,config){
|
| 4 |
-
mergeoptions = new Object(this.defaults.merge(config));
|
| 5 |
-
this.config = mergeoptions.toObject();
|
| 6 |
-
document.addEventListener
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
| 1 |
+
DLSU = Class.create();
|
| 2 |
+
DLSU.prototype = {
|
| 3 |
+
initialize: function(id,config){
|
| 4 |
+
mergeoptions = new Object(this.defaults.merge(config));
|
| 5 |
+
this.config = mergeoptions.toObject();
|
| 6 |
+
if (document.addEventListener){
|
| 7 |
+
document.addEventListener('scroll', this.start.bind(this));
|
| 8 |
+
window.addEventListener('resize', this.start.bind(this));
|
| 9 |
+
window.addEventListener('load', this.start.bind(this));
|
| 10 |
+
} else if (document.attachEvent){
|
| 11 |
+
document.attachEvent('onclick', this.start.bind(this));
|
| 12 |
+
window.attachEvent('onresize', this.start.bind(this));
|
| 13 |
+
window.attachEvent('onload', this.start.bind(this));
|
| 14 |
+
}
|
| 15 |
+
this.config.anchorElem = $(id);
|
| 16 |
+
},
|
| 17 |
+
defaults: $H({
|
| 18 |
+
duration: 0.5,
|
| 19 |
+
offset: 0,
|
| 20 |
+
activeOverlay: 75
|
| 21 |
+
}),
|
| 22 |
+
start: function(){
|
| 23 |
+
scrollOffsets = document.viewport.getScrollOffsets();
|
| 24 |
+
scrollTop = scrollOffsets.top;
|
| 25 |
+
if(scrollTop >= this.config.activeOverlay){
|
| 26 |
+
this.toggleAnchor(true,this.config.anchorElem);
|
| 27 |
+
this.config.anchorElem.down("a").observe('click', function(ce){
|
| 28 |
+
Event.stop(ce);
|
| 29 |
+
Effect.ScrollTo($$('html body')[0],{duration:this.config.duration,offset:this.config.offset,transition: Effect.Transitions.linear});
|
| 30 |
+
}.bind(this));
|
| 31 |
+
}
|
| 32 |
+
else{
|
| 33 |
+
this.toggleAnchor(false,this.config.anchorElem);
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
toggleAnchor: function(action,elem){
|
| 37 |
+
if(action){
|
| 38 |
+
elem.show();
|
| 39 |
+
}
|
| 40 |
+
else{
|
| 41 |
+
elem.hide();
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
}
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Dolphin_ScrollUp</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -22,11 +22,11 @@ Dolphin Scrollup Features
|
|
| 22 |
9. Allows you to upload your custom image for Link type 'Image'.
|
| 23 |
10. Use Prototype lib instead of jQuery to avoid javascript conflicts and errors.
|
| 24 |
11. Containing compress javascript, css.</description>
|
| 25 |
-
<notes>
|
| 26 |
<authors><author><name>DolphinWeb</name><user>auto-converted</user><email>ankit@dolphinwebsolution.com</email></author></authors>
|
| 27 |
-
<date>2013-05-
|
| 28 |
-
<time>
|
| 29 |
-
<contents><target name="magecommunity"><dir name="Dolphin"><dir name="Scrollup"><dir name="Block"><file name="Scrollup.php" hash="302d5e697a9bd3f8e86ce0ce0971084d"/></dir><dir name="Helper"><file name="Data.php" hash="c99f97430b9b215953d102bbbda977a2"/></dir><dir name="Model"><dir name="System"><file name="Elementtype.php" hash="f88fa59b901df4436c918ac8a083474a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="
|
| 30 |
<compatible/>
|
| 31 |
<dependencies/>
|
| 32 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Dolphin_ScrollUp</name>
|
| 4 |
+
<version>1.0.3</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 22 |
9. Allows you to upload your custom image for Link type 'Image'.
|
| 23 |
10. Use Prototype lib instead of jQuery to avoid javascript conflicts and errors.
|
| 24 |
11. Containing compress javascript, css.</description>
|
| 25 |
+
<notes>IE8 issue fixed.</notes>
|
| 26 |
<authors><author><name>DolphinWeb</name><user>auto-converted</user><email>ankit@dolphinwebsolution.com</email></author></authors>
|
| 27 |
+
<date>2013-05-29</date>
|
| 28 |
+
<time>08:47:26</time>
|
| 29 |
+
<contents><target name="magecommunity"><dir name="Dolphin"><dir name="Scrollup"><dir name="Block"><file name="Scrollup.php" hash="302d5e697a9bd3f8e86ce0ce0971084d"/></dir><dir name="Helper"><file name="Data.php" hash="c99f97430b9b215953d102bbbda977a2"/></dir><dir name="Model"><dir name="System"><file name="Elementtype.php" hash="f88fa59b901df4436c918ac8a083474a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cbb9d16eb1029d46f2e214e3186f5cc9"/><file name="config.xml" hash="fadac4afe86629cebad5c3999fb08836"/><file name="system.xml" hash="07f22381ea30668d86c17efeb3b953d4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="dl_scrollup"><file name="init.phtml" hash="29e123fd87decb5e88f37c5496bc6cd3"/></dir></dir><dir name="layout"><file name="scrollup.xml" hash="9ea9717eb04b3f00f56a6da89bf7bb75"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dolphin_Scrollup.xml" hash="22da41b03c49aea0b5b43f0ef7ac74e9"/></dir></target><target name="mageweb"><dir name="js"><dir name="dolphin"><dir name="scrollup"><file name="DLSU.js" hash="2fe35babe5d7dc82864bba8377ea25af"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="dolphin"><dir name="scrollup"><dir name="css"><file name="scrollup.css" hash="714a8f3c8a1b3f476b459d3151df3090"/></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="dlsu"><dir name="default"><file name="scrollup.png" hash="cfa0168d68e1c0c4992e0172b83c6950"/></dir></dir></target></contents>
|
| 30 |
<compatible/>
|
| 31 |
<dependencies/>
|
| 32 |
</package>
|
