Merge pull request #200 from wjt/jquery

jqueryDayField: do nothing if <input type=date> supported
This commit is contained in:
Michael Snoyman 2012-01-10 02:02:10 -08:00
commit 5a6638ad18

View File

@ -84,13 +84,18 @@ jqueryDayField jds = Field
addScript' urlJqueryUiJs addScript' urlJqueryUiJs
addStylesheet' urlJqueryUiCss addStylesheet' urlJqueryUiCss
addJulius [JULIUS| addJulius [JULIUS|
$(function(){$("##{theId}").datepicker({ $(function(){
dateFormat:'yy-mm-dd', var i = $("##{theId}");
changeMonth:#{jsBool $ jdsChangeMonth jds}, if (i.attr("type") != "date") {
changeYear:#{jsBool $ jdsChangeYear jds}, i.datepicker({
numberOfMonths:#{mos $ jdsNumberOfMonths jds}, dateFormat:'yy-mm-dd',
yearRange:"#{jdsYearRange jds}" changeMonth:#{jsBool $ jdsChangeMonth jds},
})}); changeYear:#{jsBool $ jdsChangeYear jds},
numberOfMonths:#{mos $ jdsNumberOfMonths jds},
yearRange:"#{jdsYearRange jds}"
});
}
});
|] |]
} }
where where