thekingsimo / jquery-week-calendar

Automatically exported from code.google.com/p/jquery-week-calendar
0 stars 0 forks source link

switchDisplay error using multiple instance #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When using multiples instances of week-calendar the buttons displayed on 
"switch display" always change the info on the first calendar rendered.

Original issue reported on code.google.com by gildonei.mendes on 23 Jan 2012 at 1:29

Attachments:

GoogleCodeExporter commented 8 years ago
I solved this changing the lines:

716: var _randId = Math.random(99999).toString().substr(2,7); (added)
717: var _id = 'wc-switch-display-' + option + _randId; (modified)

(I'm using version: 2.0-dev)

Original comment by gildonei.mendes on 23 Jan 2012 at 1:47