Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6923 closed bug (notabug)

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');

Change History (9)

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

Resolution: invalid
Status: newclosed

Perhaps you mean jQuery 1.5? Even then it works.

comment:2 Changed 11 years ago by GrInYa

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

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

comment:3 Changed 11 years ago by Scott González

comment:4 Changed 11 years ago by GrInYa

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

comment:5 Changed 11 years ago by GrInYa

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

comment:7 Changed 11 years ago by GrInYa

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

comment:8 Changed 11 years ago by Scott González

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

comment:9 Changed 11 years ago by GrInYa

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

Note: See TracTickets for help on using tickets.