]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: fixed problem on ids with. Fixed #6154 – Datepicker brokes handler ids...
authorm157y <ru.m157y@gmail.com>
Wed, 6 Oct 2010 07:09:59 +0000 (00:09 -0700)
committerScott González <scott.gonzalez@gmail.com>
Wed, 6 Oct 2010 12:37:25 +0000 (08:37 -0400)
ui/jquery.ui.datepicker.js

index ccbcc6dac240f1fdf505ac096f010ec450dc6e98..678129e490420e3ab2b51f1656cfd1980d8553be 100644 (file)
@@ -167,7 +167,7 @@ $.extend(Datepicker.prototype, {
 
        /* Create a new instance object. */
        _newInst: function(target, inline) {
-               var id = target[0].id.replace(/([^A-Za-z0-9_])/g, '\\\\$1'); // escape jQuery meta chars
+               var id = target[0].id.replace(/([^A-Za-z0-9_-])/g, '\\\\$1'); // escape jQuery meta chars
                return {id: id, input: target, // associated target
                        selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
                        drawMonth: 0, drawYear: 0, // month being drawn