Commit 8f8895e7 authored by Antonio Terceiro's avatar Antonio Terceiro
Browse files

Merge branch 'blog_slug' of https://gitlab.com/danielafeitosa/noosfero

parents 50c87964 c9149e85
......@@ -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