Fix jQuery date picker for newer jQuery versions

This commit is contained in:
Michael Snoyman 2012-05-22 21:23:33 +03:00
parent d4d69e8e3e
commit 1edf9b2b1b

View File

@ -71,9 +71,9 @@ jqueryDayField jds = Field
addStylesheet' urlJqueryUiCss
toWidget [julius|
$(function(){
var i = $("##{theId}");
if (i.attr("type") != "date") {
i.datepicker({
var i = document.getElementById("#{theId}");
if (i.type != "date") {
$(i).datepicker({
dateFormat:'yy-mm-dd',
changeMonth:#{jsBool $ jdsChangeMonth jds},
changeYear:#{jsBool $ jdsChangeYear jds},