Skip to main content

Search and Top Navigation

#6923 closed bug (notabug)

Opened February 01, 2011 04:38PM UTC

Closed February 01, 2011 05:08PM UTC

Last modified February 04, 2011 02:47PM UTC

UI Dialog Bug with jQuery 5.0

Reported by: GrInYa Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:
Description

With jQuery 5.0 after closing dialog window, you can not re-open it with

.dialog('open');

Attachments (0)
Change History (9)

Changed February 01, 2011 05:08PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Perhaps you mean jQuery 1.5? Even then it works.

Changed February 04, 2011 01:42PM UTC by GrInYa comment:2

yes...i mean 1.5 =)) sorry my mistake...

ps: try with google chrome lattest version...with jQuery 1.4.4 works fine

Changed February 04, 2011 01:52PM UTC by scottgonzalez comment:3

I did, it works: http://jsbin.com/uyafa3/edit

Changed February 04, 2011 02:15PM UTC by GrInYa comment:4

strange...now it worked...some days ago it didnt... ;) also console log didn't gave any errors

Changed February 04, 2011 02:32PM UTC by GrInYa comment:5

i use in that way this method...and after i created and opened dialog, it dont want to open again:

showAlert: function(text) {
	var newText = '';
	var triangle = '<span class="ui-icon ui-icon-triangle-1-e" style="float:left;"></span>';
	if ($.isArray(text)) {
		$.each(text, function(key, value) {
			newText += triangle + value + '<br />';
		})
	} else {
		newText = triangle + text;
	}
	if (!$('#dialogMessage').length) {
		$('body').append('<div id="dialogMessage"><span id="dialogContent"></span></div>');
		$('#dialogContent').html(newText);
		$('#dialogMessage').dialog({
			hide: 'explode',
			show: 'drop',
			width: 'auto',
			maxWidth: 800,
			maxHeight: 400,
			resizable: false,
			draggable: false,
			title: '<span class="ui-icon ui-icon-alert" style="float:left; margin-right:10px;"></span>' + WEBSITE_TITLE + ' Alert',
			modal: true,
			buttons: {
				Ok: function() {
					$(this).dialog('close');
				}
			}
		});
	} else {
		$('#dialogContent').html(newText);
		$('#dialogMessage').dialog('open');
	}
}

i dont get any errors in js...but dont want to re-open

Changed February 04, 2011 02:35PM UTC by GrInYa comment:6

Changed February 04, 2011 02:39PM UTC by GrInYa comment:7

error is in hide: 'explode'...without it...all are perfect ;)

Changed February 04, 2011 02:40PM UTC by scottgonzalez comment:8

This only occurs with hide: "explode". Can you open a new bug?

Changed February 04, 2011 02:47PM UTC by GrInYa comment:9

in my project i use lattest version of jQuery and UI...if i will find others...ill write them here