WordPress.org

Plugin Directory

Changeset 394314


Ignore:
Timestamp:
06/07/11 18:24:56 (3 years ago)
Author:
tlovett1
Message:

bug fixed!

Location:
custom-contact-forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-contact-forms/tags/4.6.0.1/js/custom-contact-forms-admin-ajax.js

    r394289 r394314  
    239239                    pattern = new RegExp('<option value="' + detach_object_id + '">.*?<\/option>', "i"); 
    240240                    new_options = detach_object_field.html().replace(pattern, ''); 
    241                     if (!new_options.match(/<\/option>/)) new_options = '<option value="-1">Nothing Attached!</option>'; 
     241                    var patt = /<\/option>/i; 
     242                    if (!new_options.match(patt)) new_options = '<option value="-1">Nothing Attached!</option>'; 
    242243                    detach_object_field.html(new_options); 
    243244                }, 
  • custom-contact-forms/trunk/js/custom-contact-forms-admin-ajax.js

    r339255 r394314  
    239239                    pattern = new RegExp('<option value="' + detach_object_id + '">.*?<\/option>', "i"); 
    240240                    new_options = detach_object_field.html().replace(pattern, ''); 
    241                     if (!new_options.match(/<\/option>/)) new_options = '<option value="-1">Nothing Attached!</option>'; 
     241                    var patt = /<\/option>/i; 
     242                    if (!new_options.match(patt)) new_options = '<option value="-1">Nothing Attached!</option>'; 
    242243                    detach_object_field.html(new_options); 
    243244                }, 
Note: See TracChangeset for help on using the changeset viewer.