Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix calWeekMode issue with incorrect month being set (and sometimes y…

…ear). Closes #248
  • Loading branch information...
commit 6e5fb09d3ec4ae84dbafe51a2e18a1432eeb38fd 1 parent ff75d2d
@jtsage authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  js/jqm-datebox.mode.calbox.js
  2. +1 −1  tests/dev.html
View
2  js/jqm-datebox.mode.calbox.js
@@ -276,7 +276,7 @@
.jqmData('date', ((o.calWeekMode)?cal.weekMode:cal.gen[row][col][0]))
.jqmData('theme', cal.thisMonth === cal.gen[row][col][1] ? checked.theme : '-')
.jqmData('enabled', checked.ok)
- .jqmData('month', cal.gen[row][col][1])
+ .jqmData('month', cal.gen[row][((o.calWeekMode)?o.calWeekModeDay:col)][1])
.appendTo(hRow);
}
}
View
2  tests/dev.html
@@ -51,7 +51,7 @@
<div data-role="content">
<div data-role="fieldcontain">
<label for="l1">l1</label>
- <input name="l1" type="text" min="2013-02-02" data-role="datebox" data-options='{"mode": "calbox"}' data-mini="true" id="l1" />
+ <input name="l1" type="text" data-role="datebox" data-options='{"mode": "calbox", "calWeekMode": true}' id="l1" />
</div>
<div data-role="fieldcontain">
<label for="aa1">text comparison</label>
Please sign in to comment.
Something went wrong with that request. Please try again.