aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-12-25 08:41:09 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-12-25 08:41:09 -0500
commit63d624fcb51c8dbb52af386ddf798a5c16c1d6c9 (patch)
treeae0998d9af3af7a471f1ab1f0aa91437ba491269 /ui
parentecb7b6ec1217e06bc2a26a7da694ce0a0fd84221 (diff)
downloadjquery-ui-63d624fcb51c8dbb52af386ddf798a5c16c1d6c9.tar.gz
jquery-ui-63d624fcb51c8dbb52af386ddf798a5c16c1d6c9.zip
Datepicker: Use tabs for indentation.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.datepicker.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index e3a9286dd..c10178c08 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -287,7 +287,7 @@ $.extend(Datepicker.prototype, {
* @param settings object - update the dialog date picker instance's settings (anonymous object)
* @param pos int[2] - coordinates for the dialog's position within the screen or
* event - with x/y coordinates or
- * leave empty for default (screen centre)
+ * leave empty for default (screen centre)
* @return the manager object
*/
_dialogDatepicker: function(input, date, onSelect, settings, pos) {
@@ -1915,17 +1915,17 @@ $.extend(Datepicker.prototype, {
minYear = null,
maxYear = null,
years = this._get(inst, 'yearRange');
- if (years){
- yearSplit = years.split(':');
- currentYear = new Date().getFullYear();
- minYear = parseInt(yearSplit[0], 10) + currentYear;
- maxYear = parseInt(yearSplit[1], 10) + currentYear;
- }
+ if (years){
+ yearSplit = years.split(':');
+ currentYear = new Date().getFullYear();
+ minYear = parseInt(yearSplit[0], 10) + currentYear;
+ maxYear = parseInt(yearSplit[1], 10) + currentYear;
+ }
return ((!minDate || date.getTime() >= minDate.getTime()) &&
(!maxDate || date.getTime() <= maxDate.getTime()) &&
- (!minYear || date.getFullYear() >= minYear) &&
- (!maxYear || date.getFullYear() <= maxYear));
+ (!minYear || date.getFullYear() >= minYear) &&
+ (!maxYear || date.getFullYear() <= maxYear));
},
/* Provide the configuration settings for formatting/parsing. */