Skip to content
Snippets Groups Projects
Commit 423831b8 authored by Prasad's avatar Prasad
Browse files

Fixes #544: Mute trigger of form validation when its not available

parent 119ca0d7
No related branches found
No related tags found
1 merge request!311Language italian translation
......@@ -105,11 +105,13 @@ Vtiger.Class("Settings_Vtiger_OutgoingServer_Js",{},{
thisInstance.saveOutgoingDetails(form);
}
};
form.vtValidate(params);
form.on('submit', function(e){
e.preventDefault();
return false;
});
if (form.length) {
form.vtValidate(params);
form.on('submit', function(e){
e.preventDefault();
return false;
});
}
//register click event for resetToDefault Button
resetButton.click(function(e) {
......@@ -199,4 +201,4 @@ Vtiger.Class("Settings_Vtiger_OutgoingServer_Js",{},{
Settings_Vtiger_OutgoingServer_Js("Settings_Vtiger_OutgoingServerEdit_Js",{},{});
Settings_Vtiger_OutgoingServer_Js("Settings_Vtiger_OutgoingServerDetail_Js",{},{});
\ No newline at end of file
Settings_Vtiger_OutgoingServer_Js("Settings_Vtiger_OutgoingServerDetail_Js",{},{});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment