Skip to main content

Search and Top Navigation

#6069 closed bug (fixed)

Opened September 18, 2010 10:58AM UTC

Closed September 20, 2010 01:17PM UTC

Last modified November 19, 2010 06:26PM UTC

DIALOG windows 1.8.5 draggapble problem

Reported by: enti Owned by:
Priority: critical Milestone: 1.8.6
Component: ui.dialog Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:
Description

Hello. There is some problem with 1.8.5 version with dialog windows. For example:

<span class="signupregister">DIALOG</span>

<div class="modallogin" id="modallogin">

some text

</div>

<script type="text/javascript">

$(document).ready(function(){

$(".signupregister").click(function(){

$("#modallogin").dialog({

modal:true,

width:503,

height:191,

title: "text",

draggable: false,

resizable: false

});

});

});

</script>

If I for the first time click on DIALOG text eveyrhitng is OK...dialog windows will open..But after I close it and try to click again on text DIALOG...there is a JS error:

'''Error: uncaught exception: cannot call methods on draggable prior to initialization; attempted to call method 'destroy''''

So if I remove draggable: false, from script everythig is OK...Also evrything works great with 1.8.4 version...Hmm...I think that this is a only bug in new version

Hlásenie: Výnimka bola vygenerovaná, ale nebola zachytená

Riadok: 20

Znak: 64

Kód: 0

URI: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js

Attachments (0)
Change History (6)

Changed September 20, 2010 01:17PM UTC by scottgonzalez comment:1

milestone: TBD1.9
resolution: → fixed
status: newclosed

Fixed in 98a98a0.

Changed September 20, 2010 02:56PM UTC by enti comment:2

Hello. Does it mean that this problem will be solved in version 1.9?Please can you expalin me this problem...So Do I need to use 1.8.4 version If I don't want to use draggble modal window. And only in version 1.9 will be this problem solved? Thank you for your help.

Changed September 20, 2010 03:05PM UTC by scottgonzalez comment:3

This will work with 1.8.6 when it gets released. In the meantime, you can stop running initialization on every click. See http://blog.nemikor.com/2009/04/08/basic-usage-of-the-jquery-ui-dialog/ and http://blog.nemikor.com/2009/08/07/creating-dialogs-on-demand/

Changed September 20, 2010 03:12PM UTC by enti comment:4

Thank You for your help:)

Changed October 25, 2010 06:51PM UTC by scottgonzalez comment:5

milestone: 1.91.8.6

Changed November 19, 2010 06:26PM UTC by Scott González comment:6

Dialog: Don't call draggable.destroy if we're not currently draggable. Fixes #6069 - DIALOG windows 1.8.5 draggapble problem.

Changeset: 98a98a05d1a646a1e53b90020fe7c096acd1d933