aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-09 16:32:16 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-09 16:32:34 -0400
commitb92965a78121534c113b1d717a75cee728548520 (patch)
treefd932e0ab0660234baab70e2a98b59c621341ccb
parent25f20b18bd43dd4259b64e016d397ba45f5c6934 (diff)
downloadjquery-ui-b92965a78121534c113b1d717a75cee728548520.tar.gz
jquery-ui-b92965a78121534c113b1d717a75cee728548520.zip
Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicker 1.8.22 escaped id does not work.
(cherry picked from commit 30b579f598a3abdc9b0b7ad18bc76c8b5438d5ca)
-rw-r--r--ui/jquery.ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 1c94d61fd..a38a68859 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -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 () {