From afe91e6947303b975cea7876c99a56d92163e82b Mon Sep 17 00:00:00 2001 From: actuallyakash Date: Tue, 2 Apr 2019 13:20:44 +0530 Subject: [PATCH] Updated Version & Year > Updated Version & Year > Updated Read Me > Resolved minor bug --- .gitignore | 3 --- README.md | 16 ++++++++++++++-- helper.php | 6 ++++-- language/en-GB/en-GB.mod_jdsimplecontactform.ini | 6 +++--- .../en-GB/en-GB.mod_jdsimplecontactform.sys.ini | 6 +++--- layouts/fields/file.php | 6 ------ mod_jdsimplecontactform.xml | 4 ++-- 7 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a5a83a0..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/nbproject -/assets/scss -.sass-cache/ \ No newline at end of file diff --git a/README.md b/README.md index bfab320..358bf92 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,23 @@ ![AUR](https://img.shields.io/aur/license/yaourt.svg) [![GitHub release](https://img.shields.io/github/release/joomdev/JD-Simple-Contact-Form.svg)](https://github.com/joomdev/JD-Simple-Contact-Form/releases) +# JD Simple Contact Form +JD Simple Contact form extension is a simple form builder for the Joomla ideally suited for beginners and also meets the basic requirements for every developer and designer. It allows creating various types of form like the mailing list, survey, contact and more. +
+ # Requirements * Joomla: 3.8 + * PHP : 5.6+ -# JD Simple Contact Form -JD Simple Contact form extension is simple form builder for a Joomla ideally suited for beginners and also meets the basic requirements for every developers and designers. It allows to create various types of form like mailing list, survey, contact and more. +## Here is what's included: +- Unlimited number of form fields. +- 10+ different field types. +- Ability to make fields required with custom error messages. +- Ability to order fields. +- Ability to configure thank you message. +- Ability to redirect to another page after form submission. +- Custom email messages. +- Ability to CC, BCC messages. +- Ajax Submission. # [Documentation](https://github.com/joomdev/JD-Simple-Contact-Form/wiki) diff --git a/helper.php b/helper.php index 027388e..698fe5f 100644 --- a/helper.php +++ b/helper.php @@ -126,8 +126,10 @@ public static function submitForm($ajax = false) { } } - if ($fld['type'] == 'checkbox') { - $value = $_POST['jdscf'][$name]['cb']; + if ($fld['type'] == 'checkbox') { + if (isset($_POST['jdscf'][$name]['cb'])){ + $value = $_POST['jdscf'][$name]['cb']; + } if (is_array($value)) { $value = implode(',', $value); } else { diff --git a/language/en-GB/en-GB.mod_jdsimplecontactform.ini b/language/en-GB/en-GB.mod_jdsimplecontactform.ini index 80c585a..496dfbe 100644 --- a/language/en-GB/en-GB.mod_jdsimplecontactform.ini +++ b/language/en-GB/en-GB.mod_jdsimplecontactform.ini @@ -8,13 +8,13 @@ MOD_JDSIMPLECONTACTFORM_XML_DESCRIPTION="JD Simple Contact form provides you wit Here is what's included: " diff --git a/language/en-GB/en-GB.mod_jdsimplecontactform.sys.ini b/language/en-GB/en-GB.mod_jdsimplecontactform.sys.ini index bc54e58..fefaec8 100644 --- a/language/en-GB/en-GB.mod_jdsimplecontactform.sys.ini +++ b/language/en-GB/en-GB.mod_jdsimplecontactform.sys.ini @@ -3,13 +3,13 @@ MOD_JDSIMPLECONTACTFORM_XML_DESCRIPTION="JD Simple Contact form provides you wit Here is what's included: " diff --git a/layouts/fields/file.php b/layouts/fields/file.php index 357b82b..3be8be2 100644 --- a/layouts/fields/file.php +++ b/layouts/fields/file.php @@ -55,12 +55,6 @@ $js .= '}'; $js .= '};'; - -// $js .= "jQuery('#" . $field->name . '-' .$module->id . "').on('change', function() {"; -// $js .= "var fileName = jQuery(this).val().split('\\').pop();"; -// $js .= "jQuery(this).siblings('.custom-file-label').addClass('selected').html(fileName);"; -// $js .= "});"; - $js .= 'jQuery("#' . $field->name . '-' .$module->id . '").on("change", function() {'; $js .= 'var fileName = jQuery(this).val().split("\\\").pop();'; $js .= 'jQuery(this).siblings(".custom-file-label").addClass("selected").html(fileName);'; diff --git a/mod_jdsimplecontactform.xml b/mod_jdsimplecontactform.xml index 500e1cb..aec6bf5 100644 --- a/mod_jdsimplecontactform.xml +++ b/mod_jdsimplecontactform.xml @@ -2,8 +2,8 @@ mod_jdsimplecontactform JoomDev - 1.2 - Feb 2019 + 1.3 + Apr 2019 https://www.joomdev.com Copyright (C) 2019 Joomdev, Inc. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt