WordPress.org

Plugin Directory

Changeset 521490


Ignore:
Timestamp:
03/20/12 20:44:15 (2 years ago)
Author:
tlovett1
Message:
 
Location:
custom-contact-forms
Files:
115 added
4 edited

Legend:

Unmodified
Added
Removed
  • custom-contact-forms/trunk/custom-contact-forms-front.php

    r521367 r521490  
    459459                    $field = parent::selectField($field_id, ''); 
    460460                     if ($field->field_slug == 'ishuman') { 
    461                         if (isset($_POST['ishuman']) && $_POST['ishuman'] != 1) { 
     461                        if (!isset($_POST['ishuman']) || (isset($_POST['ishuman']) && $_POST['ishuman'] != 1)) { 
    462462                            if (empty($field->field_error)) 
    463463                                $this->setFormError('ishuman', __('Only humans can use this form.', 'custom-contact-forms')); 
  • custom-contact-forms/trunk/custom-contact-forms.php

    r521367 r521490  
    44    Plugin URI: http://taylorlovett.com/wordpress-plugins 
    55    Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form. 
    6     Version: 5.0.0.0 
     6    Version: 5.0.0.1 
    77    Author: Taylor Lovett 
    88    Author URI: http://www.taylorlovett.com 
  • custom-contact-forms/trunk/js/custom-contact-forms-admin-ajax.js

    r521367 r521490  
    270270        var attach_object_id = attach_object_field.attr("value"); 
    271271        var attach_object_text = attach_object_field.find("option[value=" + attach_object_id + "]:eq(0)").first().text(); 
    272         pattern = new RegExp('<li class=".*?field' + attach_object_id + '.*?">', "i"); 
    273         str = attached_list.html(); 
    274         if (!str.match(pattern)) { 
     272        var already_attached = false; 
     273         
     274        attached_list.find("li").each(function() { 
     275            var classes = $j(this).attr("class").split(' '); 
     276            $j.each(classes, function(index, cls) { 
     277                if (cls == "field" + attach_object_id) { 
     278                    already_attached = true; 
     279                } 
     280            }); 
     281        }); 
     282         
     283        if (!already_attached) { 
    275284            var new_li = $j("<li>").html(attach_object_text).addClass("field" + attach_object_id).addClass("ui-state-default").appendTo(attached_list); 
    276285            var new_span = $j("<span>").html("&times;").prependTo(new_li); 
  • custom-contact-forms/trunk/readme.txt

    r521367 r521490  
    55Requires at least: 2.8.1 
    66Tested up to: 3.3.1 
    7 Stable tag: 5.0.0.0 
     7Stable tag: 5.0.0.1 
    88 
    99Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress. 
     
    145145== Changelog == 
    146146 
     147= 5.0.0.1 = 
     148*   ishuman fixed field bug fixed 
     149*   attach field bug fixed 
     150 
    147151= 5.0.0.0 = 
    148152*   Admin user interface improved 1000% with drag-and-drop fields as well as save/delete buttons. 
Note: See TracChangeset for help on using the changeset viewer.