This file contains 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
using System; | |
using System.Web.Mvc; | |
namespace Nurvx.Mvc.Helpers | |
{ | |
public static class MvcHtmlHelper | |
{ | |
public static MvcHtmlString BootstrapValidationSummary(this HtmlHelper helper, string validationMessage = "", bool dismissible = false) | |
{ | |
// If the ModelState has no errors, return empty |
This file contains 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
$.extend($.fn.dataTableExt.oSort, { | |
"date-us-pre": function (a) { | |
var b = a.match(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/), | |
month = b[1], | |
day = b[2], | |
year = b[3]; | |
if (year.length == 2) { | |
if (parseInt(year, 10) < 70) year = '20' + year; | |
else year = '19' + year; |