Merge pull request #200 from wjt/jquery
jqueryDayField: do nothing if <input type=date> supported
This commit is contained in:
commit
5a6638ad18
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user