diff --git a/41702.diff b/41702-new.diff
index 2cb0280..00389e8 100644
old
|
new
|
index b575a83..bbf2181 100755 |
13 | 13 | + jQuery(document).ready(function(){ |
14 | 14 | + jQuery("#tag-name").blur(function() { |
15 | 15 | + if( jQuery.trim(jQuery("#tag-name").val()) != '' ) { |
16 | | + jQuery("#tag-slug").val( jQuery.trim(jQuery("#tag-name").val().replace(/\s+/g, '-').toLowerCase()) ); |
| 16 | var catVal = jQuery.trim(jQuery("#tag-name").val()); |
| 17 | var catSlug = catVal.toLowerCase().replace(/[^\w ]+/g,'').replace(/ +/g,'-'); |
| 18 | jQuery("#tag-slug").val( catSlug ); |
17 | 19 | + } |
18 | 20 | + }); |
19 | 21 | + }); |