Browse files

Merge my strategy with Joe's strategy to come up with a super strategy.

  • Loading branch information...
2 parents d9bd0d1 + f5edaa6 commit 2806a4ee369e4e93eea115e513107be4a15654ac @parndt committed Jul 24, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/admin/blogs/_form.html.erb
View
6 app/views/admin/blogs/_form.html.erb
@@ -98,11 +98,11 @@
}, 250);
});
- $('#blog_title').keyup(function(e) {
+ $('#blog_title').bind('keyup paste blur', function(e) {
$('#blog_permalink').val($(this).val().replace(/\s+/g,'-')
.replace(/[^a-zA-Z0-9\-]/g,'')
- .replace(/\-{2,}/ig,'-')
- .toLowerCase());
+ .toLowerCase()
+ .replace(/\-{2,}/ig,'-'));
});
});
</script>

0 comments on commit 2806a4e

Please sign in to comment.