jquery - onclick of the close icon , close the corresponding minimized dialog from the container -
i using jquery-ui dialog , when minimize dialogs dialog gets minimized container @ left. problem when close dialog , want close minimized container too.
my dialog's have id of dialog_1,dialog_2,dialog_3... , minimized dialogs have id of 1_minimized,2_minimized...
i tried close click function,
$('.ui-dialog-titlebar-close').click(function(){ $( '#' + dialog_id + '_minimized').hide(); });
for close , restore button
$('#dialog_window_minimized_container').append( '<div class="dialog_window_minimized ui-widget ui-resizable ui-state- default ui-corner-all" id="' + dialog_id + '_minimized">' + this.uidialogtitlebar.find('.ui-dialog-title').text() + '<span class="ui-min-icon ui-icon ui-icon-newwin"/> <span class="ui-minimized-close ui-icon ui-icon-close"/></div>');
but closes below child dialogs too. example if have 10 dialogs , if click close of 5th dialog, below 6,7,8..10 closes.
how can restrict close corresponding minimized dialog??
cheers
can try $('#'+dialog_id+'_minimized').hide();
because if give space treat $('# 1 _minimized').
but selector $('#1_minimized')
Comments
Post a Comment