Opened 14 years ago

Closed 14 years ago

#3973 closed bug (worksforme)

Dialog plugin doesn't work when jQuery UI 1.6 and 1.5 are loaded on the same page.

Reported by: metayii Owned by:
Priority: minor Milestone: 1.7
Component: ui.dialog Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:

Description

jQuery UI 1.5 and 1.6rc5 were loaded by the same page, Dialog stopped working. Details:

With this HTML markup:

<div title="Dialogo hola" id="dialogo">Hola </div>

And this js code (it doesn't matter where do I place it, it throws the same error):

$('#dialogo').dialog();

I get:

$[namespace][name] is not a constructor jquery-ui-personalized-1.6rc5.js Line 272

Line 272 is:

$.data(this, name, new $[namespace][name](this, options)));

The solution was not to include both versions. It would be nice to have an automatic check.

Attachments (1)

ui-versions.html (1.6 KB) - added by Scott González 14 years ago.
demo showing 1.5 and 1.6 working together

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Scott González

Attachment: ui-versions.html added

demo showing 1.5 and 1.6 working together

comment:1 Changed 14 years ago by Scott González

Milestone: TBD1.6
Resolution: worksforme
Status: newclosed

Works for me, see attached file.

Note: See TracTickets for help on using tickets.