]> 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:16 +0000 (16:32 -0400)
ui/jquery.ui.datepicker.js

index 091fe31017740e2b5c9aaa1daa4aff8aa8fca779..cd4ffe3ee28031a7478491f3637d962c41ce1f01 100644 (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 () {