| Issue 208: | beforeHideContent won't close my modal | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
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
Apr 2, 2009
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
w0w, thanks for the fast reply... i really appreciate it a lot, again thanks. :) |
||||||||