diff --git a/Src/VideoGameQuotes.Web/Global.asax.cs b/Src/VideoGameQuotes.Web/Global.asax.cs index 52cee83..27ef70f 100644 --- a/Src/VideoGameQuotes.Web/Global.asax.cs +++ b/Src/VideoGameQuotes.Web/Global.asax.cs @@ -77,9 +77,10 @@ namespace VideoGameQuotes.Web { //these routes don't work with constraints in mono...? routes.MapSmartRoute("quote-edit", "quote/edit/{id}", new { controller = "Quote", action = "Edit" }); routes.MapSmartRoute("quote-delete", "quote/delete", new { controller = "Quote", action = "Delete" }); + routes.MapSmartRoute("quote-dismiss-flag", "quote/dismiss-flag", new { controller = "Quote", action = "DismissFlag" }); routes.MapSmartRoute("single-quote", "quote/{id}/{*text}", new { controller = "Quote", action = "Quote" }); - routes.MapSmartRoute("dismiss-flag", "dismiss-flag", new { controller = "Quote", action = "DismissFlag" }); + //routes.MapSmartRoute("dismiss-flag", "dismiss-flag", new { controller = "Quote", action = "FooBar" }); routes.MapSmartRoute("default", "", new { controller = "Home", action = "Index" }); } } diff --git a/Src/VideoGameQuotes.Web/Views/Quote/EditQuoteForm.ascx b/Src/VideoGameQuotes.Web/Views/Quote/EditQuoteForm.ascx index 5967e62..94990ac 100644 --- a/Src/VideoGameQuotes.Web/Views/Quote/EditQuoteForm.ascx +++ b/Src/VideoGameQuotes.Web/Views/Quote/EditQuoteForm.ascx @@ -146,8 +146,9 @@ <% var editModel = Model as EditQuoteModel; if (editModel != null && editModel.QuoteId > 0) { %> - <%= Html.Hidden("QuoteId", editModel.QuoteId, new { id = "quote-id" })%> +
+ <%= Html.Hidden("QuoteId", editModel.QuoteId, new { id = "quote-id" })%> <% foreach (var flag in editModel.Flags) { %>
diff --git a/Src/VideoGameQuotes.Web/Views/Quote/NoQuotes.aspx b/Src/VideoGameQuotes.Web/Views/Quote/NoQuotes.aspx index e248eb0..a74d448 100644 --- a/Src/VideoGameQuotes.Web/Views/Quote/NoQuotes.aspx +++ b/Src/VideoGameQuotes.Web/Views/Quote/NoQuotes.aspx @@ -3,6 +3,6 @@

It appears you’re trying to look at some video game quotes. Unfortunately, we don’t have any. - You can fix that by <%= Html.ActionLink("adding some", "Submit", "Quote") %>. + You can fix that by <%= Html.ActionLink("adding some", "submit", "Quote") %>.

\ No newline at end of file diff --git a/Src/VideoGameQuotes.Web/media/js/quoteform.compressed.js b/Src/VideoGameQuotes.Web/media/js/quoteform.compressed.js index 43eeea7..f51788f 100644 --- a/Src/VideoGameQuotes.Web/media/js/quoteform.compressed.js +++ b/Src/VideoGameQuotes.Web/media/js/quoteform.compressed.js @@ -1 +1 @@ -(function(g,e,i){var d=function(k){return function(){g("#create-"+k+"-form").find("input[type='text']").val("").end().find("input[type='checkbox']").removeAttr("checked").end().find("> .edit-mode").val(0).end().find("> fieldset > legend").text("Create new "+k).end().clearModelErrors().toggle();g("#"+k+"-select").toggle();return false}};var a=function(n,p,k,q,o){var m=n.find("tr:last");if(m.find("td").length===o){m=g("");n.append(m)}var l=g("").append(g("").attr({type:"checkbox",name:p,value:k,id:p+"_"+k,checked:"checked"})).append(g("