Version Notes
Packaging neatness for neatness' sake.
Download this release
Release Info
Developer | Daniel Deady |
Extension | Clockworkgeek_CalendarView |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.3
- js/calendarview/calendarview.js +11 -2
- package.xml +7 -7
js/calendarview/calendarview.js
CHANGED
@@ -109,6 +109,14 @@ var Calendar = Class.create({
|
|
109 |
popupTriggerElement.observe('click', function(event){
|
110 |
this.showAtElement(event, popupTriggerElement);
|
111 |
}.bind(this) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
} else{ // In-Page Calendar
|
114 |
this.show();
|
@@ -334,6 +342,7 @@ var Calendar = Class.create({
|
|
334 |
cell.className = '';
|
335 |
cell.date = new Date(date);
|
336 |
cell.update(day);
|
|
|
337 |
|
338 |
// Account for days of the month other than the current month
|
339 |
if (!isCurrentMonth)
|
@@ -456,8 +465,8 @@ var Calendar = Class.create({
|
|
456 |
y = containerWidth * this.y + pos.y;
|
457 |
}else{ // 'container' - container of the trigger elements
|
458 |
var pos = Position.cumulativeOffset(element);
|
459 |
-
x = pos
|
460 |
-
y =
|
461 |
}
|
462 |
this.showAt(x, y);
|
463 |
},
|
109 |
popupTriggerElement.observe('click', function(event){
|
110 |
this.showAtElement(event, popupTriggerElement);
|
111 |
}.bind(this) );
|
112 |
+
if (popupTriggerElement.tagName == 'INPUT') {
|
113 |
+
popupTriggerElement.observe('focus', function(event){
|
114 |
+
this.showAtElement(event, popupTriggerElement);
|
115 |
+
}.bind(this) );
|
116 |
+
popupTriggerElement.observe('blur', function(event){
|
117 |
+
this.hide();
|
118 |
+
}.bind(this) );
|
119 |
+
}
|
120 |
|
121 |
} else{ // In-Page Calendar
|
122 |
this.show();
|
342 |
cell.className = '';
|
343 |
cell.date = new Date(date);
|
344 |
cell.update(day);
|
345 |
+
delete cell.navAction;
|
346 |
|
347 |
// Account for days of the month other than the current month
|
348 |
if (!isCurrentMonth)
|
465 |
y = containerWidth * this.y + pos.y;
|
466 |
}else{ // 'container' - container of the trigger elements
|
467 |
var pos = Position.cumulativeOffset(element);
|
468 |
+
x = pos.left;
|
469 |
+
y = element.offsetHeight + pos.top + 2;
|
470 |
}
|
471 |
this.showAt(x, y);
|
472 |
},
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Clockworkgeek_CalendarView</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary
|
10 |
<description/>
|
11 |
-
<notes>
|
12 |
-
<authors
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="CalendarView"><dir name="Block"><dir name="Html"><file name="Date.php" hash="88033157b18467dea1ff7eaaef819314"/></dir></dir><dir name="Helper"><file name="Data.php" hash="796e1c34398f91401f459d5751461665"/></dir><dir name="etc"><file name="config.xml" hash="3df61b4731851023c64aa9640b9e938d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="calendarview.xml" hash="63802012b673918deae096bc4a8c8f26"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_CalendarView.xml" hash="e15dbdb8dff966babc0afffb340e76d7"/></dir></target><target name="mageweb"><dir name="js"><dir name="calendarview"><file name="I18n.js" hash="bad962dee7858fb6377f92ad3f6eb79a"/><file name="calendarview.js" 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>Clockworkgeek_CalendarView</name>
|
4 |
+
<version>1.4.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Replace the default date picker with a modern, lightweight alternative.</summary>
|
10 |
<description/>
|
11 |
+
<notes>Packaging neatness for neatness' sake.</notes>
|
12 |
+
<authors><author><name>Daniel Deady</name><user>clockworkgeek</user><email>daniel@clockworkgeek.com</email></author></authors>
|
13 |
+
<date>2017-03-31</date>
|
14 |
+
<time>22:01:32</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Clockworkgeek"><dir name="CalendarView"><dir name="Block"><dir name="Html"><file name="Date.php" hash="88033157b18467dea1ff7eaaef819314"/></dir></dir><dir name="Helper"><file name="Data.php" hash="796e1c34398f91401f459d5751461665"/></dir><dir name="etc"><file name="config.xml" hash="3df61b4731851023c64aa9640b9e938d"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="calendarview.xml" hash="63802012b673918deae096bc4a8c8f26"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clockworkgeek_CalendarView.xml" hash="e15dbdb8dff966babc0afffb340e76d7"/></dir></target><target name="mageweb"><dir name="js"><dir name="calendarview"><file name="I18n.js" hash="bad962dee7858fb6377f92ad3f6eb79a"/><file name="calendarview.js" hash="a8e694643b5cff67f7c1c92b738de687"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="calendarview"><file name="calendarview.css" hash="72e1b36973450f6a7d35902d9103d93c"/><file name="calendarview_ie.css" hash="048fa59cd71dfa6206c718b09702f26d"/></dir></dir></dir></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>
|