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

(cherry picked from commit 30b579f598)
This commit is contained in:
Scott González 2012-08-09 16:32:16 -04:00
parent 25f20b18bd
commit b92965a781

View File

@ -1408,7 +1408,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 () {