Commit c9149e85 authored by Daniela Feitosa's avatar Daniela Feitosa
Browse files

Fixed js that fills in the slug field of blog

parent 945870d9
......@@ -107,11 +107,11 @@ function convToValidEmail( str ) {
}
function updateUrlField(name_field, id) {
url_field = $(id);
old_url_value = url_field.value;
url_field = jQuery('#'+id);
old_url_value = url_field.val();
new_url_value = convToValidIdentifier(name_field.value, "-");
url_field.value = new_url_value;
url_field.val(new_url_value);
if (!/^\s*$/.test(old_url_value)
&& old_url_value != new_url_value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment