My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 208: beforeHideContent won't close my modal
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Apr 2009


 
Reported by kbit...@gmail.com, Apr 2, 2009

i tried to call a function in beforeHideContent but instead the modal
dialog remains... can you give me a sample in using the beforeHideContent?
I'm new to this.. any help would be greatly appreciated. Thanks.

here's my sample code...

function showLocationByCountry()
{
	$.fn.nyroModalManual({
			debug : true,
			modal : true,
			ajax : {
				url : '<?=site_url('leadevo/get_states_cities')?>',
				data : p,
				type : 'post'
			},
			beforeHideContent : saveLocation
	});
	return false;
}

function saveLocation() {
	//save data via another ajax call.
}
Apr 2, 2009
#1 kbit...@gmail.com
by the way i'm using jquery.nyroModal-1.4.2.js and jquery-1.3.2.js.
Apr 2, 2009
Project Member #2 nyro...@gmail.com
beforeHideContent should looks like:
beforeHideContent(elts, settings, callback) {
    //...
    callback();
}
You just missed the callback, that's why it's not working.
Status: Fixed
Apr 2, 2009
#3 kbit...@gmail.com
w0w, thanks for the fast reply... i really appreciate it a lot, again thanks. :)

Powered by Google Project Hosting