aboutsummaryrefslogtreecommitdiffstats
path: root/ui
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:16 -0400
commit30b579f598a3abdc9b0b7ad18bc76c8b5438d5ca (patch)
tree3733e79ee4189bdbf31464fca0848b24950fe0e1 /ui
parent485ca7192ac57d018b8ce4f03e7dec6e694a53b7 (diff)
downloadjquery-ui-30b579f598a3abdc9b0b7ad18bc76c8b5438d5ca.tar.gz
jquery-ui-30b579f598a3abdc9b0b7ad18bc76c8b5438d5ca.zip
Datepicker: Unescape double escaped ids when handling events. Fixes #8480 - Datepicker 1.8.22 escaped id does not work.
Diffstat (limited to 'ui')
-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 091fe3101..cd4ffe3ee 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -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 () {