Skip to content

Commit

Permalink
Added titlecase script in the Series creation section as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Jun 1, 2008
1 parent f6299be commit 38a77e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/lifeflow/editor/edit_five.html
Expand Up @@ -24,6 +24,11 @@
update_model("{{model}}",{{object.pk}},data);
});
});

var capitalize_title = function () {
var txt = titleCaps($("#title").val());
$("#title").val(titleCaps($("#title").val()));
}
</script>

<div class="editing">
Expand All @@ -40,7 +45,7 @@
<form method="post" action="/editor/create_model/">
<table>
<tr><td><p> Create a new series. </p></td></tr>
<tr><td>Title: </td><td><input name="title"></td></tr>
<tr><td>Title: </td><td><input id="title" name="title"> <a class="titlecase" onclick="capitalize_title();"> titlecase it</a></td></tr>
<input type="hidden" value="series" name="model">
<tr><td></td><td><button type="submit" class="button positive"> Create </a></td></tr>
</table>
Expand Down

0 comments on commit 38a77e7

Please sign in to comment.