From 8cdf056ad4d791290d72290dc31679b7c0e52269 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Wed, 30 Jan 2019 16:00:21 +0200 Subject: [PATCH] Improved the adminForm validation JavaScript, thanks @ro-ot --- README.md | 4 ++-- admin/README.txt | 4 ++-- admin/compiler/joomla_3/submitbutton.js | 14 ++------------ admin/compiler/joomla_3/submitbutton_site.js | 14 ++------------ admin/views/admin_custom_tabs/submitbutton.js | 14 ++------------ admin/views/admin_fields/submitbutton.js | 14 ++------------ .../views/admin_fields_conditions/submitbutton.js | 14 ++------------ admin/views/admin_fields_relations/submitbutton.js | 14 ++------------ admin/views/admin_view/submitbutton.js | 14 ++------------ admin/views/component_admin_views/submitbutton.js | 14 ++------------ admin/views/component_config/submitbutton.js | 14 ++------------ .../component_custom_admin_menus/submitbutton.js | 14 ++------------ .../component_custom_admin_views/submitbutton.js | 14 ++------------ admin/views/component_dashboard/submitbutton.js | 14 ++------------ .../views/component_files_folders/submitbutton.js | 14 ++------------ admin/views/component_mysql_tweaks/submitbutton.js | 14 ++------------ admin/views/component_site_views/submitbutton.js | 14 ++------------ admin/views/component_updates/submitbutton.js | 14 ++------------ admin/views/custom_admin_view/submitbutton.js | 14 ++------------ admin/views/custom_code/submitbutton.js | 14 ++------------ admin/views/dynamic_get/submitbutton.js | 14 ++------------ admin/views/field/submitbutton.js | 14 ++------------ admin/views/fieldtype/submitbutton.js | 14 ++------------ admin/views/help_document/submitbutton.js | 14 ++------------ admin/views/joomla_component/submitbutton.js | 14 ++------------ admin/views/language/submitbutton.js | 14 ++------------ admin/views/language_translation/submitbutton.js | 14 ++------------ admin/views/layout/submitbutton.js | 14 ++------------ admin/views/library/submitbutton.js | 14 ++------------ admin/views/library_config/submitbutton.js | 14 ++------------ .../library_files_folders_urls/submitbutton.js | 14 ++------------ admin/views/server/submitbutton.js | 14 ++------------ admin/views/site_view/submitbutton.js | 14 ++------------ admin/views/snippet/submitbutton.js | 14 ++------------ admin/views/snippet_type/submitbutton.js | 14 ++------------ admin/views/template/submitbutton.js | 14 ++------------ admin/views/validation_rule/submitbutton.js | 14 ++------------ componentbuilder.xml | 2 +- site/views/api/submitbutton.js | 14 ++------------ 39 files changed, 77 insertions(+), 437 deletions(-) diff --git a/README.md b/README.md index d55007778..9735cf1d9 100644 --- a/README.md +++ b/README.md @@ -144,11 +144,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 29th January, 2019 ++ *Last Build*: 30th January, 2019 + *Version*: 2.9.10 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **195039** ++ *Line count*: **194699** + *Field count*: **1089** + *File count*: **1277** + *Folder count*: **201** diff --git a/admin/README.txt b/admin/README.txt index d55007778..9735cf1d9 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -144,11 +144,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 29th January, 2019 ++ *Last Build*: 30th January, 2019 + *Version*: 2.9.10 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **195039** ++ *Line count*: **194699** + *Field count*: **1089** + *File count*: **1277** + *Folder count*: **201** diff --git a/admin/compiler/joomla_3/submitbutton.js b/admin/compiler/joomla_3/submitbutton.js index 84fe0dc54..f1600dba4 100644 --- a/admin/compiler/joomla_3/submitbutton.js +++ b/admin/compiler/joomla_3/submitbutton.js @@ -5,19 +5,9 @@ Joomla.submitbutton = function(task) if (task == ''){ return false; } else { - var isValid=true; var action = task.split('.'); - if (action[1] != 'cancel' && action[1] != 'close'){ - var forms = $$('form.form-validate'); - for (var i=0;i COM_COMPONENTBUILDER - 29th January, 2019 + 30th January, 2019 Llewellyn van der Merwe llewellyn@joomlacomponentbuilder.com http://www.joomlacomponentbuilder.com diff --git a/site/views/api/submitbutton.js b/site/views/api/submitbutton.js index 1d7be75e7..1598b2910 100644 --- a/site/views/api/submitbutton.js +++ b/site/views/api/submitbutton.js @@ -13,19 +13,9 @@ Joomla.submitbutton = function(task) if (task == ''){ return false; } else { - var isValid=true; var action = task.split('.'); - if (action[1] != 'cancel' && action[1] != 'close'){ - var forms = $$('form.form-validate'); - for (var i=0;i