Swapping the tmp hard-coded slugify path out of the Common.Routable part editor template in favor of a Url.Action

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045423
This commit is contained in:
skewed
2010-01-14 21:48:30 +00:00
parent a91e18f706
commit f683210de8
@@ -10,5 +10,5 @@
<span><%=Html.TextBoxFor(m => m.Slug, new { @class = "text" })%></span>
</fieldset>
<% using (this.Capture("end-of-page-scripts")) { %>
<script type="text/javascript">$(function(){$("input#Routable_Title").blur(function(){$(this).slugify({target:$("input#Routable_Slug"),url:"<%="/common/routable/slugify" %>"})})})</script>
<% } %>
<script type="text/javascript">$(function(){$("input#Routable_Title").blur(function(){$(this).slugify({target:$("input#Routable_Slug"),url:"<%=Url.Action("Slugify", "Routable", new {area = "Common"}) %>"})})})</script>
<% } %>