Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2015-04-07 14:42:24 +0300
committerMarc Delisle <marc@infomarc.info>2015-04-07 14:42:24 +0300
commit148d6aef0e2ab6a136fe26ea96009e468b595fb0 (patch)
treebb8d5e9d120f06d766bd2f5dbba6c8f6c63b4935 /js/tbl_change.js
parentb73103e5e63f7601a493a7c1b390684d9e6a7e5d (diff)
parent95a5623a6c8e1e0aca01b4bf5e46c8ae152ca702 (diff)
Merge pull request #1634 from whitepiegon/masterFeature2
clear any validation messages
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r--js/tbl_change.js30
1 files changed, 19 insertions, 11 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js
index 15485a7d76..9f77872a56 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -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];
@@ -277,17 +288,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.
*
* @param string currId Current ID of the row
@@ -346,6 +346,7 @@ function applyFunctionToAllRows(currId, functionName, copySalt, salt, targetRows
*/
AJAX.registerTeardown('tbl_change.js', function () {
$(document).off('click', 'span.open_gis_editor');
+ $(document).off('click', "input[name^='insert_ignore_']");
$(document).off('click', "input[name='gis_data[save]']");
$(document).off('click', 'input.checkbox_null');
$('select[name="submit_type"]').unbind('change');
@@ -453,6 +454,13 @@ AJAX.registerOnload('tbl_change.js', function () {
});
/**
+ * Forced validation check of fields
+ */
+ $(document).on('click',"input[name^='insert_ignore_']", function (event) {
+ $("#insertForm").valid();
+ });
+
+ /**
* Uncheck the null checkbox as geometry data is placed on the input field
*/
$(document).on('click', "input[name='gis_data[save]']", function (event) {