Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicker 1.8.22 escaped id does not work.

This commit is contained in:
Scott González 2012-08-09 16:32:16 -04:00
parent 485ca7192a
commit 30b579f598

View File

@ -1414,7 +1414,7 @@ $.extend(Datepicker.prototype, {
*/
_attachHandlers: function(inst) {
var stepMonths = this._get(inst, 'stepMonths');
var id = '#' + inst.id;
var id = '#' + inst.id.replace( /\\\\/g, "\\" );
inst.dpDiv.find('[data-handler]').map(function () {
var handler = {
prev: function () {