remove error message on checking checkbox

Signed-off-by: Aayush Anand <aayushism12@gmail.com>
This commit is contained in:
Aayush Anand 2015-04-06 10:55:42 +05:30
parent 053ca6029e
commit 27fdae5090

View File

@ -147,6 +147,17 @@ function isTime(val)
return tmexp.test(val);
}
/**
* To check whether insert section is ignored or not
*/
function checkForCheckbox(multi_edit)
{
if($("#insert_ignore_"+multi_edit).length) {
return $("#insert_ignore_"+multi_edit).is(":unchecked");
}
return true;
}
function verificationsAfterFieldChange(urlField, multi_edit, theType)
{
var evt = window.event || arguments.callee.caller.arguments[0];
@ -276,17 +287,6 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType)
}
/* End of fields validation*/
/**
* To check whether insert section is ignored or not
*/
function checkForCheckbox(multi_edit)
{
if($("#insert_ignore_"+multi_edit).length) {
return $("#insert_ignore_"+multi_edit).is(":unchecked");
}
return true;
}
/**
* Applies the selected function to all rows to be inserted.
*
@ -351,6 +351,7 @@ AJAX.registerTeardown('tbl_change.js', function () {
$('select[name="submit_type"]').unbind('change');
$(document).off('change', "#insert_rows");
$(document).off('click', "select[name*='funcs']");
$(document).off('click', "#insert_ignore_1");
});
/**
@ -452,6 +453,13 @@ AJAX.registerOnload('tbl_change.js', function () {
}
});
/**
* Forced validation check of fields
*/
$(document).on('click', "#insert_ignore_1", function (event) {
$("#insertForm").valid();
});
/**
* Uncheck the null checkbox as geometry data is placed on the input field
*/