Skip to content

Commit

Permalink
Updated Version & Year
Browse files Browse the repository at this point in the history
> Updated Version & Year
> Updated Read Me
> Resolved minor bug
  • Loading branch information
actuallyakash committed Apr 2, 2019
1 parent efcf3c4 commit afe91e6
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<center><a target="_blank" href="https://www.joomdev.com/products/extensions/jd-simple-contact-form"><img src="https://www.joomdev.com/images/extensions/jd-simple-contact-form/banner.jpg" /></a></center>

# 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)
6 changes: 4 additions & 2 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions language/en-GB/en-GB.mod_jdsimplecontactform.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ MOD_JDSIMPLECONTACTFORM_XML_DESCRIPTION="JD Simple Contact form provides you wit
Here is what's included:
<ul>
<li>Unlimited number of form fields.</li>
<li>9 different field types.</li>
<li>Ability to make fields required.</li>
<li>10+ different field types.</li>
<li>Ability to make fields required with custom error messages.</li>
<li>Ability to order fields.</li>
<li>Ability to configure thank you message.</li>
<li>Ability to redirect to another page after form submission.</li>
<li>Custom email messages.</li>
<li>Ability to CC, BCC messages.</li>
<li>Ability to CC, BCC, Reply-To messages.</li>
<li>Ajax Submission.</li>
</ul>"

Expand Down
6 changes: 3 additions & 3 deletions language/en-GB/en-GB.mod_jdsimplecontactform.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ MOD_JDSIMPLECONTACTFORM_XML_DESCRIPTION="JD Simple Contact form provides you wit
Here is what's included:
<ul>
<li>Unlimited number of form fields.</li>
<li>9 different field types.</li>
<li>Ability to make fields required.</li>
<li>10+ different field types.</li>
<li>Ability to make fields required with custom error messages.</li>
<li>Ability to order fields.</li>
<li>Ability to configure thank you message.</li>
<li>Ability to redirect to another page after form submission.</li>
<li>Custom email messages.</li>
<li>Ability to CC, BCC messages.</li>
<li>Ability to CC, BCC, Reply-To messages.</li>
<li>Ajax Submission.</li>
</ul>
"
6 changes: 0 additions & 6 deletions layouts/fields/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);';
Expand Down
4 changes: 2 additions & 2 deletions mod_jdsimplecontactform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<extension type="module" version="3.1" client="site" method="upgrade">
<name>mod_jdsimplecontactform</name>
<author>JoomDev</author>
<version>1.2</version>
<creationDate>Feb 2019</creationDate>
<version>1.3</version>
<creationDate>Apr 2019</creationDate>
<url>https://www.joomdev.com</url>
<copyright>Copyright (C) 2019 Joomdev, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down

0 comments on commit afe91e6

Please sign in to comment.