]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicke...
authorScott González <scott.gonzalez@gmail.com>
Thu, 9 Aug 2012 20:32:16 +0000 (16:32 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Aug 2012 20:32:34 +0000 (16:32 -0400)
(cherry picked from commit 30b579f598a3abdc9b0b7ad18bc76c8b5438d5ca)

ui/jquery.ui.datepicker.js

index 1c94d61fd0f94658afdd7ba0a150afbc2666a0e5..a38a68859f6acb1e5b9a3d012ad300b598e926c6 100644 (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 () {