madskristensen/MiniBlog — pull request #103 by fredrikeriksson (2014-06-16 01:23:53+00:00)
Title: Fixed comment.ashx 404 when in virtual directory

Added `blogPath` in the commenting functionality so calls to the `comment.ashx` doesn't 404 when in an virtual directory. At the moment it's broken.

Although now this `var path = !string.IsNullOrWhiteSpace(Blog.BlogPath) ? "/" + Blog.BlogPath : "";` exists in both `CommentForm.cshtml` and `AdminMenu.cshtml`.
This code probably is unecessary anyway if the slash is already added in `blog:path` and Razor should handle null values, due to missing the element, without problems.

I made some changes regarding the above and to enable `data-blog-path` sharing between the script-files in this fredrikeriksson@ef8004dd708b8d79a31895b823fe7357e6346355 branch.
If the changes seems alright I'll merge them to this branch, if not, take this as is