Closed androidealp closed 8 years ago
You can use remove "eModalclose(false);" and use eModal.close() instead " eModalclose(true);" to close the current modal.
Samuel Ribeiro Pinto
2015-12-15 1:59 GMT+00:00 androidealp notifications@github.com:
Hi,
How to insert custom code for manipulate the event emodal to close?
My form is loaded into the emodal, if the submit form is not available, i want that the eModal not close, if is available then close emodal
//this code emodal ajax buttons: [ {text: 'Salvar', style: 'info', close: false, click: save }, {text: 'Fechar', style: 'danger', close: true} ],//this code event savefunction save(){$ajax({sucess:function(data){ if(dataerror){$notify({dataerrormsn});eModalclose(false); // ???? }else{$notify({datasuccessmsn});eModalclose(true); // ???? }
} }); }
— Reply to this email directly or view it on GitHub https://github.com/saribe/eModal/issues/24.
Hi,
How to insert custom code for manipulate the event emodal to close?
My form is loaded into the emodal, if the submit form is not available, i want that the eModal not close, if is available then close emodal.