Skip to content

Commit

Permalink
Version bump: 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Nov 3, 2014
1 parent 7e392af commit 486bd23
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
457 J.T.Sage <jtsage+tdtrac@gmail.com>
274 JTSage <jtsage+datebox@gmail.com>
279 JTSage <jtsage+datebox@gmail.com>
121 J.T. Sage <jtsage+github@gmail.com>
15 Jonas Nyrup <jnyrup@gmail.com>
10 Eduardo Malpeli <tchatcho66@hotmail.com>
Expand Down
5 changes: 4 additions & 1 deletion docs/api/calFormatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,27 @@ This needs to be either a
The function must accept a single argument, which is an object of the Date:

{% highlight js %}

{
"Year" : 0, // Integer
"Month : 0-11, // Integer, Jan = 0 .. Dec = 11
"Date" : 1-31 // Integer
}

{% endhighlight %}

As usual, the easiest method of passing the function in is as a reference. This sample function
will italicize the "tens" dates (10 - 19) - although it is pretty much useless, it gives the idea:

{ % highlight js %}
{% highlight js %}
window.myFormatter = function( date ) {
if ( date.Date > 9 && date.Date < 20 ) {
return "<i>" + date.Date + "</i>";
} else {
return date.Date;
}
}

{% endhighlight %}

Then, to link it to datebox, it could be as easy as:
Expand Down
1 change: 1 addition & 0 deletions docs/builder/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<?php

$versions = array(
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2",
Expand Down
1 change: 1 addition & 0 deletions docs/builder/make.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
header('Content-Type: application/javascript');

$versions = array(
"1.4.5",
"1.4.4",
"1.4.3",
"1.4.2",
Expand Down
4 changes: 2 additions & 2 deletions docs/qunit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<link rel="stylesheet" href="{{ site.cdn }}jqm-datebox{{site.min}}.css" />

<script type="text/javascript" src="{{ site.cdn }}{{ site.dbver }}/jqm-datebox-{{ site.dbver }}.core{{site.min}}.js"></script>
<script type="text/javascript" src="{{ site.cdn }}{{ site.dbver }}jqm-datebox-{{ site.dbver }}.mode.calbox{{site.min}}.js"></script>
<script type="text/javascript" src="{{ site.cdn }}{{ site.dbver }}jqm-datebox-{{ site.dbver }}.mode.datebox{{site.min}}.js"></script>
<script type="text/javascript" src="{{ site.cdn }}{{ site.dbver }}/jqm-datebox-{{ site.dbver }}.mode.calbox{{site.min}}.js"></script>
<script type="text/javascript" src="{{ site.cdn }}{{ site.dbver }}/jqm-datebox-{{ site.dbver }}.mode.datebox{{site.min}}.js"></script>
<script type="text/javascript" src="./jqm-datebox.qunit-lang.js"></script>
<script type="text/javascript">
jQuery.extend(jQuery.mobile, { ajaxEnabled: false });
Expand Down
2 changes: 1 addition & 1 deletion docs/qunit/jqm-datebox-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ QUnit.test( "Hard - max", function( assert ){

assert.equal(
db.datebox( "getTheDate" ).comp(),
20010115
20010114
);
});

Expand Down
4 changes: 2 additions & 2 deletions docs/version_test/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$verA = "1.4.3";
$verB = "1.4.3";
$verA = "1.4.5";
$verB = "1.4.5";
if ( isset($_REQUEST['ver']) ) {
$verA = $_REQUEST['ver'];
$verB = $_REQUEST['ver'];
Expand Down
4 changes: 2 additions & 2 deletions js/jqm-datebox.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// 3-jQueryMobileVersion
// Check Header for Build Date.
version: "3-1.4.4-01",
version: "3-1.4.5-00",

theme: false,
themeDefault: "a",
Expand Down Expand Up @@ -1084,7 +1084,7 @@
fromEl = w.d.input.attr( "min" ).split( "-" );
fromElDate = new w._date(fromEl[0], fromEl[1]-1, fromEl[2], 0, 0, 0, 0 );
daysRaw = ( fromElDate.getTime() - todayClean.getTime() ) / lod;
o.minDays = parseInt( daysRaw * -1 , 10 ) + 1;
o.minDays = parseInt( daysRaw * -1 , 10 ) + 0;
}
if ( ( override === true || o.maxDays === false ) &&
( typeof w.d.input.attr( "max" ) !== "undefined" ) ) {
Expand Down
2 changes: 1 addition & 1 deletion js/jqm-datebox.mode.calbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
fmtText = o.calFormatter({
"Year": ( ( genny[row][col][1] > 11 ) ? curYear + 1 :
( genny[row][col][1] < 0 ) ? curYear - 1 : curYear ),
"Month" : ( ( genny[row][col][1] == 12 ) ? 0 :
"Month" : ( ( genny[row][col][1] === 12 ) ? 0 :
( genny[row][col][1] === -1 ) ? 11 : genny[row][col][1] ),
"Date" : genny[row][col][0],
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jquery-mobile-datebox",
"title": "jQuery Mobile DateBox",
"description": "jQM Plugin to provide a Date and Time Picker",
"version": "1.4.4",
"version": "1.4.5",
"homepage": "http://dev.jtsage.com/jQM-DateBox/",
"author": {
"name": "JTSage and other contributors",
Expand Down

0 comments on commit 486bd23

Please sign in to comment.