This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
LayoutPage = "~/Views/Shared/_Layout.cshtml"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<add namespace="System.Web.WebPages"/> | |
<add namespace="System.Web.Helpers" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<add assembly="WebMatrix.Data, Version=1.0.0.0, Culture=neutral, | |
PublicKeyToken=31BF3856AD364E35" /> | |
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, | |
PublicKeyToken=31BF3856AD364E35" /> | |
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, | |
PublicKeyToken=31BF3856AD364E35" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appSettings> | |
<add key="enableSimpleMembership" value="false" /> | |
<add key="ClientValidationEnabled" value="false"/> | |
<add key="UnobtrusiveJavaScriptEnabled" value="true"/> | |
</appSettings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.web.webPages.razor> | |
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, | |
Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> | |
<pages pageBaseType="System.Web.Mvc.WebViewPage"> | |
<namespaces> | |
<add namespace="System.Web.Mvc" /> | |
<add namespace="System.Web.Mvc.Ajax" /> | |
<add namespace="System.Web.Mvc.Html" /> | |
<add namespace="System.Web.Routing" /> | |
</namespaces> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DependencyResolver.SetResolver(new StructureMapContainer(container)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MvcServiceLocator.SetCurrent(new StructureMapContainer(container)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StructureMapContainer : IDependencyResolver | |
{ | |
static IContainer _container; | |
public StructureMapContainer(IContainer container) | |
{ | |
_container = container; | |
_container.Configure(x => x.Scan(y => | |
{ | |
y.AssembliesFromApplicationBaseDirectory(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IDependencyResolver | |
{ | |
object GetService(Type serviceType); | |
IEnumerable<object> GetServices(Type serviceType); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function () { | |
$.getJSON('Photo/CommentsForUser/' + new Date().getTime() , function (data) { | |
$.pinify.clearOverlay(); | |
var itemList = []; | |
var commentCount = parseInt($('#commentCount').val()); | |
if (data.length > commentCount) { | |
$('#commentCount').val(data.length); | |
$.pinify.flashTaskbar(); |