Skip to content

Succeeding modal() after waitingDialog.hide() "expands" the page's width #28

@patkundesu

Description

@patkundesu

I noticed that if I run $("#someModal").modal right after waitingDialog.hide() "expands" the page, or more like it moves the page to the left and I could see a space on the right side of my navigation bar. My solution is:

/**
 * Closes dialog
 */
hide: function (callback) {
	$dialog.modal('hide');

	if(callback){
		$dialog.on('hidden.bs.modal', function(){
			callback();
		});
	}
}

now, you can show the next modal asynchronously AFTER hiding the waitingDialog.

waitingDialog.hide(function(){
	$("#someModal").modal();
});	

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions