From a93cffa814b4e1afed11ea978c8e7b066a6536fe Mon Sep 17 00:00:00 2001 From: Linux2000 Date: Sat, 16 Jul 2011 11:20:07 -0700 Subject: [PATCH] With out " in the attribute @date, the module does not work in jQuery 1.4, 1.5, 1.6. --- jquery.date_input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.date_input.js b/jquery.date_input.js index 84ae311..051df19 100644 --- a/jquery.date_input.js +++ b/jquery.date_input.js @@ -101,14 +101,14 @@ DateInput.prototype = { this.changeInput($(event.target).attr("date")); })); - $("td[date=" + this.dateToString(new Date()) + "]", this.tbody).addClass("today"); + $("td[date='" + this.dateToString(new Date()) + "']", this.tbody).addClass("today"); $("td.selectable_day", this.tbody).mouseover(function() { $(this).addClass("hover") }); $("td.selectable_day", this.tbody).mouseout(function() { $(this).removeClass("hover") }); }; $('.selected', this.tbody).removeClass("selected"); - $('td[date=' + this.selectedDateString + ']', this.tbody).addClass("selected"); + $('td[date="' + this.selectedDateString + '"]', this.tbody).addClass("selected"); }, // Select a particular date. If the date is not specified it is read from the input. If no date is