@@ -136,12 +136,12 @@ | |||
</COMReference> | |||
</ItemGroup> | |||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |||
<Import Project="..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets')" /> | |||
<Import Project="..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets')" /> | |||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |||
<PropertyGroup> | |||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |||
</PropertyGroup> | |||
<Error Condition="!Exists('..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets'))" /> | |||
<Error Condition="!Exists('..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets'))" /> | |||
</Target> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. |
@@ -3,7 +3,7 @@ | |||
<package id="BouncyCastle" version="1.8.1" targetFramework="net452" /> | |||
<package id="CommandLineParser" version="1.9.71" targetFramework="net452" /> | |||
<package id="EntityFramework" version="6.1.3" targetFramework="net452" /> | |||
<package id="GitVersionTask" version="3.5.4" targetFramework="net452" developmentDependency="true" /> | |||
<package id="GitVersionTask" version="3.6.3" targetFramework="net452" developmentDependency="true" /> | |||
<package id="Inferno" version="1.3.0" targetFramework="net452" /> | |||
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net452" /> | |||
<package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net452" /> |
@@ -46,6 +46,7 @@ namespace Teknik.Areas.Blog | |||
// Register Script Bundles | |||
BundleTable.Bundles.Add(new ScriptBundle("~/bundles/blog").Include( | |||
"~/Scripts/bootbox/bootbox.min.js", | |||
"~/Scripts/MarkdownDeepLib.min.js", | |||
"~/Areas/Blog/Scripts/Blog.js")); | |||
// Register Style Bundles | |||
BundleTable.Bundles.Add(new StyleBundle("~/Content/blog").Include( |
@@ -1,6 +1,6 @@ | |||
/*! | |||
* Bootstrap v3.3.6 (http://getbootstrap.com) | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Bootstrap v3.3.7 (http://getbootstrap.com) | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
*/ | |||
.btn-default, |
@@ -1,6 +1,6 @@ | |||
/*! | |||
* Bootstrap v3.3.6 (http://getbootstrap.com) | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Bootstrap v3.3.7 (http://getbootstrap.com) | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
*/ | |||
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |||
@@ -1106,7 +1106,6 @@ a:focus { | |||
text-decoration: underline; | |||
} | |||
a:focus { | |||
outline: thin dotted; | |||
outline: 5px auto -webkit-focus-ring-color; | |||
outline-offset: -2px; | |||
} | |||
@@ -2537,7 +2536,6 @@ select[size] { | |||
input[type="file"]:focus, | |||
input[type="radio"]:focus, | |||
input[type="checkbox"]:focus { | |||
outline: thin dotted; | |||
outline: 5px auto -webkit-focus-ring-color; | |||
outline-offset: -2px; | |||
} | |||
@@ -3029,7 +3027,6 @@ select[multiple].input-lg { | |||
.btn.focus, | |||
.btn:active.focus, | |||
.btn.active.focus { | |||
outline: thin dotted; | |||
outline: 5px auto -webkit-focus-ring-color; | |||
outline-offset: -2px; | |||
} |
@@ -1,6 +1,6 @@ | |||
/*! | |||
* Bootstrap v3.3.6 (http://getbootstrap.com) | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Bootstrap v3.3.7 (http://getbootstrap.com) | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under the MIT license | |||
*/ | |||
@@ -11,16 +11,16 @@ if (typeof jQuery === 'undefined') { | |||
+function ($) { | |||
'use strict'; | |||
var version = $.fn.jquery.split(' ')[0].split('.') | |||
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) { | |||
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3') | |||
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { | |||
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4') | |||
} | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: transition.js v3.3.6 | |||
* Bootstrap: transition.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#transitions | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -77,10 +77,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: alert.js v3.3.6 | |||
* Bootstrap: alert.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#alerts | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -96,7 +96,7 @@ if (typeof jQuery === 'undefined') { | |||
$(el).on('click', dismiss, this.close) | |||
} | |||
Alert.VERSION = '3.3.6' | |||
Alert.VERSION = '3.3.7' | |||
Alert.TRANSITION_DURATION = 150 | |||
@@ -109,7 +109,7 @@ if (typeof jQuery === 'undefined') { | |||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 | |||
} | |||
var $parent = $(selector) | |||
var $parent = $(selector === '#' ? [] : selector) | |||
if (e) e.preventDefault() | |||
@@ -172,10 +172,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: button.js v3.3.6 | |||
* Bootstrap: button.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#buttons | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -192,7 +192,7 @@ if (typeof jQuery === 'undefined') { | |||
this.isLoading = false | |||
} | |||
Button.VERSION = '3.3.6' | |||
Button.VERSION = '3.3.7' | |||
Button.DEFAULTS = { | |||
loadingText: 'loading...' | |||
@@ -214,10 +214,10 @@ if (typeof jQuery === 'undefined') { | |||
if (state == 'loadingText') { | |||
this.isLoading = true | |||
$el.addClass(d).attr(d, d) | |||
$el.addClass(d).attr(d, d).prop(d, true) | |||
} else if (this.isLoading) { | |||
this.isLoading = false | |||
$el.removeClass(d).removeAttr(d) | |||
$el.removeClass(d).removeAttr(d).prop(d, false) | |||
} | |||
}, this), 0) | |||
} | |||
@@ -281,10 +281,15 @@ if (typeof jQuery === 'undefined') { | |||
$(document) | |||
.on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { | |||
var $btn = $(e.target) | |||
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') | |||
var $btn = $(e.target).closest('.btn') | |||
Plugin.call($btn, 'toggle') | |||
if (!($(e.target).is('input[type="radio"]') || $(e.target).is('input[type="checkbox"]'))) e.preventDefault() | |||
if (!($(e.target).is('input[type="radio"], input[type="checkbox"]'))) { | |||
// Prevent double click on radios, and the double selections (so cancellation) on checkboxes | |||
e.preventDefault() | |||
// The target component still receive the focus | |||
if ($btn.is('input,button')) $btn.trigger('focus') | |||
else $btn.find('input:visible,button:visible').first().trigger('focus') | |||
} | |||
}) | |||
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { | |||
$(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type)) | |||
@@ -293,10 +298,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: carousel.js v3.3.6 | |||
* Bootstrap: carousel.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#carousel | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -324,7 +329,7 @@ if (typeof jQuery === 'undefined') { | |||
.on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) | |||
} | |||
Carousel.VERSION = '3.3.6' | |||
Carousel.VERSION = '3.3.7' | |||
Carousel.TRANSITION_DURATION = 600 | |||
@@ -531,13 +536,14 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: collapse.js v3.3.6 | |||
* Bootstrap: collapse.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#collapse | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
/* jshint latedef: false */ | |||
+function ($) { | |||
'use strict'; | |||
@@ -561,7 +567,7 @@ if (typeof jQuery === 'undefined') { | |||
if (this.options.toggle) this.toggle() | |||
} | |||
Collapse.VERSION = '3.3.6' | |||
Collapse.VERSION = '3.3.7' | |||
Collapse.TRANSITION_DURATION = 350 | |||
@@ -743,10 +749,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: dropdown.js v3.3.6 | |||
* Bootstrap: dropdown.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#dropdowns | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -763,7 +769,7 @@ if (typeof jQuery === 'undefined') { | |||
$(element).on('click.bs.dropdown', this.toggle) | |||
} | |||
Dropdown.VERSION = '3.3.6' | |||
Dropdown.VERSION = '3.3.7' | |||
function getParent($this) { | |||
var selector = $this.attr('data-target') | |||
@@ -909,10 +915,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: modal.js v3.3.6 | |||
* Bootstrap: modal.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#modals | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -943,7 +949,7 @@ if (typeof jQuery === 'undefined') { | |||
} | |||
} | |||
Modal.VERSION = '3.3.6' | |||
Modal.VERSION = '3.3.7' | |||
Modal.TRANSITION_DURATION = 300 | |||
Modal.BACKDROP_TRANSITION_DURATION = 150 | |||
@@ -1050,7 +1056,9 @@ if (typeof jQuery === 'undefined') { | |||
$(document) | |||
.off('focusin.bs.modal') // guard against infinite focus loop | |||
.on('focusin.bs.modal', $.proxy(function (e) { | |||
if (this.$element[0] !== e.target && !this.$element.has(e.target).length) { | |||
if (document !== e.target && | |||
this.$element[0] !== e.target && | |||
!this.$element.has(e.target).length) { | |||
this.$element.trigger('focus') | |||
} | |||
}, this)) | |||
@@ -1247,11 +1255,11 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: tooltip.js v3.3.6 | |||
* Bootstrap: tooltip.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#tooltip | |||
* Inspired by the original jQuery.tipsy by Jason Frame | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -1274,7 +1282,7 @@ if (typeof jQuery === 'undefined') { | |||
this.init('tooltip', element, options) | |||
} | |||
Tooltip.VERSION = '3.3.6' | |||
Tooltip.VERSION = '3.3.7' | |||
Tooltip.TRANSITION_DURATION = 150 | |||
@@ -1565,9 +1573,11 @@ if (typeof jQuery === 'undefined') { | |||
function complete() { | |||
if (that.hoverState != 'in') $tip.detach() | |||
that.$element | |||
.removeAttr('aria-describedby') | |||
.trigger('hidden.bs.' + that.type) | |||
if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary. | |||
that.$element | |||
.removeAttr('aria-describedby') | |||
.trigger('hidden.bs.' + that.type) | |||
} | |||
callback && callback() | |||
} | |||
@@ -1610,7 +1620,10 @@ if (typeof jQuery === 'undefined') { | |||
// width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093 | |||
elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top }) | |||
} | |||
var elOffset = isBody ? { top: 0, left: 0 } : $element.offset() | |||
var isSvg = window.SVGElement && el instanceof window.SVGElement | |||
// Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3. | |||
// See https://github.com/twbs/bootstrap/issues/20280 | |||
var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset()) | |||
var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() } | |||
var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null | |||
@@ -1726,6 +1739,7 @@ if (typeof jQuery === 'undefined') { | |||
that.$tip = null | |||
that.$arrow = null | |||
that.$viewport = null | |||
that.$element = null | |||
}) | |||
} | |||
@@ -1762,10 +1776,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: popover.js v3.3.6 | |||
* Bootstrap: popover.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#popovers | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -1782,7 +1796,7 @@ if (typeof jQuery === 'undefined') { | |||
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js') | |||
Popover.VERSION = '3.3.6' | |||
Popover.VERSION = '3.3.7' | |||
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, { | |||
placement: 'right', | |||
@@ -1871,10 +1885,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: scrollspy.js v3.3.6 | |||
* Bootstrap: scrollspy.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#scrollspy | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -1900,7 +1914,7 @@ if (typeof jQuery === 'undefined') { | |||
this.process() | |||
} | |||
ScrollSpy.VERSION = '3.3.6' | |||
ScrollSpy.VERSION = '3.3.7' | |||
ScrollSpy.DEFAULTS = { | |||
offset: 10 | |||
@@ -2044,10 +2058,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: tab.js v3.3.6 | |||
* Bootstrap: tab.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#tabs | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -2064,7 +2078,7 @@ if (typeof jQuery === 'undefined') { | |||
// jscs:enable requireDollarBeforejQueryAssignment | |||
} | |||
Tab.VERSION = '3.3.6' | |||
Tab.VERSION = '3.3.7' | |||
Tab.TRANSITION_DURATION = 150 | |||
@@ -2200,10 +2214,10 @@ if (typeof jQuery === 'undefined') { | |||
}(jQuery); | |||
/* ======================================================================== | |||
* Bootstrap: affix.js v3.3.6 | |||
* Bootstrap: affix.js v3.3.7 | |||
* http://getbootstrap.com/javascript/#affix | |||
* ======================================================================== | |||
* Copyright 2011-2015 Twitter, Inc. | |||
* Copyright 2011-2016 Twitter, Inc. | |||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |||
* ======================================================================== */ | |||
@@ -2229,7 +2243,7 @@ if (typeof jQuery === 'undefined') { | |||
this.checkPosition() | |||
} | |||
Affix.VERSION = '3.3.6' | |||
Affix.VERSION = '3.3.7' | |||
Affix.RESET = 'affix affix-top affix-bottom' | |||
@@ -1,5 +1,5 @@ | |||
/*! | |||
* jQuery Validation Plugin v1.15.0 | |||
* jQuery Validation Plugin v1.15.1 | |||
* | |||
* http://jqueryvalidation.org/ | |||
* | |||
@@ -135,15 +135,14 @@ $.extend( $.fn, { | |||
// http://jqueryvalidation.org/rules/ | |||
rules: function( command, argument ) { | |||
var element = this[ 0 ], | |||
settings, staticRules, existingRules, data, param, filtered; | |||
// If nothing is selected, return nothing; can't chain anyway | |||
if ( !this.length ) { | |||
// If nothing is selected, return empty object; can't chain anyway | |||
if ( element == null || element.form == null ) { | |||
return; | |||
} | |||
var element = this[ 0 ], | |||
settings, staticRules, existingRules, data, param, filtered; | |||
if ( command ) { | |||
settings = $.data( element.form, "validator" ).settings; | |||
staticRules = settings.rules; | |||
@@ -355,7 +354,7 @@ $.extend( $.validator, { | |||
email: "Please enter a valid email address.", | |||
url: "Please enter a valid URL.", | |||
date: "Please enter a valid date.", | |||
dateISO: "Please enter a valid date ( ISO ).", | |||
dateISO: "Please enter a valid date (ISO).", | |||
number: "Please enter a valid number.", | |||
digits: "Please enter only digits.", | |||
equalTo: "Please enter the same value again.", | |||
@@ -399,6 +398,12 @@ $.extend( $.validator, { | |||
} ); | |||
function delegate( event ) { | |||
// Set form expando on contenteditable | |||
if ( !this.form && this.hasAttribute( "contenteditable" ) ) { | |||
this.form = $( this ).closest( "form" )[ 0 ]; | |||
} | |||
var validator = $.data( this.form, "validator" ), | |||
eventType = "on" + event.type.replace( /^validate/, "" ), | |||
settings = validator.settings; | |||
@@ -470,7 +475,7 @@ $.extend( $.validator, { | |||
cleanElement = v.validationTargetFor( v.clean( v.findByName( name ) ) ); | |||
if ( cleanElement && cleanElement.name in v.invalid ) { | |||
v.currentElements.push( cleanElement ); | |||
result = result && v.check( cleanElement ); | |||
result = v.check( cleanElement ) && result; | |||
} | |||
} | |||
} ); | |||
@@ -814,7 +819,20 @@ $.extend( $.validator, { | |||
return undefined; | |||
}, | |||
// The second parameter 'rule' used to be a string, and extended to an object literal | |||
// of the following form: | |||
// rule = { | |||
// method: "method name", | |||
// parameters: "the given method parameters" | |||
// } | |||
// | |||
// The old behavior still supported, kept to maintain backward compatibility with | |||
// old code, and will be removed in the next major release. | |||
defaultMessage: function( element, rule ) { | |||
if ( typeof rule === "string" ) { | |||
rule = { method: rule }; | |||
} | |||
var message = this.findDefined( | |||
this.customMessage( element.name, rule.method ), | |||
this.customDataMessage( element, rule.method ), | |||
@@ -923,7 +941,7 @@ $.extend( $.validator, { | |||
if ( this.labelContainer.length ) { | |||
this.labelContainer.append( place ); | |||
} else if ( this.settings.errorPlacement ) { | |||
this.settings.errorPlacement( place, $( element ) ); | |||
this.settings.errorPlacement.call( this, place, $( element ) ); | |||
} else { | |||
place.insertAfter( element ); | |||
} | |||
@@ -1079,6 +1097,8 @@ $.extend( $.validator, { | |||
}, | |||
previousValue: function( element, method ) { | |||
method = typeof method === "string" && method || "remote"; | |||
return $.data( element, "previousValue" ) || $.data( element, "previousValue", { | |||
old: null, | |||
valid: true, | |||
@@ -1406,14 +1426,36 @@ $.extend( $.validator, { | |||
errorMessage = "Step attribute on input type " + type + " is not supported.", | |||
supportedTypes = [ "text", "number", "range" ], | |||
re = new RegExp( "\\b" + type + "\\b" ), | |||
notSupported = type && !re.test( supportedTypes.join() ); | |||
notSupported = type && !re.test( supportedTypes.join() ), | |||
decimalPlaces = function( num ) { | |||
var match = ( "" + num ).match( /(?:\.(\d+))?$/ ); | |||
if ( !match ) { | |||
return 0; | |||
} | |||
// Number of digits right of decimal point. | |||
return match[ 1 ] ? match[ 1 ].length : 0; | |||
}, | |||
toInt = function( num ) { | |||
return Math.round( num * Math.pow( 10, decimals ) ); | |||
}, | |||
valid = true, | |||
decimals; | |||
// Works only for text, number and range input types | |||
// TODO find a way to support input types date, datetime, datetime-local, month, time and week | |||
if ( notSupported ) { | |||
throw new Error( errorMessage ); | |||
} | |||
return this.optional( element ) || ( value % param === 0 ); | |||
decimals = decimalPlaces( param ); | |||
// Value can't have too many decimals | |||
if ( decimalPlaces( value ) > decimals || toInt( value ) % toInt( param ) !== 0 ) { | |||
valid = false; | |||
} | |||
return this.optional( element ) || valid; | |||
}, | |||
// http://jqueryvalidation.org/equalTo-method/ |
@@ -86,13 +86,13 @@ | |||
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="Piwik.Tracker, Version=2.8.0.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\Piwik.Tracker.2.8.0.0\lib\net40\Piwik.Tracker.dll</HintPath> | |||
<Reference Include="Piwik.Tracker, Version=2.16.0.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\Piwik.Tracker.2.16.0.0\lib\net40\Piwik.Tracker.dll</HintPath> | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="PresentationFramework" /> | |||
<Reference Include="QRCoder, Version=1.1.9.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\QRCoder.1.1.9\lib\net40\QRCoder.dll</HintPath> | |||
<Reference Include="QRCoder, Version=1.2.2.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\QRCoder.1.2.2\lib\net40\QRCoder.dll</HintPath> | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="SecurityDriven.Inferno, Version=1.3.0.0, Culture=neutral, processorArchitecture=MSIL"> | |||
@@ -155,11 +155,11 @@ | |||
</Reference> | |||
<Reference Include="System.Xml.Linq" /> | |||
<Reference Include="TwoStepsAuthenticator, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\TwoStepsAuthenticator.1.1.0\lib\net45\TwoStepsAuthenticator.dll</HintPath> | |||
<HintPath>..\packages\TwoStepsAuthenticator.1.2.0\lib\net45\TwoStepsAuthenticator.dll</HintPath> | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | |||
<HintPath>..\packages\QRCoder.1.1.9\lib\net40\UnityEngine.dll</HintPath> | |||
<HintPath>..\packages\QRCoder.1.2.2\lib\net40\UnityEngine.dll</HintPath> | |||
<Private>True</Private> | |||
</Reference> | |||
<Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||
@@ -356,6 +356,10 @@ | |||
<Content Include="Content\bootstrap-switch\bootstrap2\bootstrap-switch.min.css" /> | |||
<Content Include="Content\bootstrap-switch\bootstrap3\bootstrap-switch.css" /> | |||
<Content Include="Content\bootstrap-switch\bootstrap3\bootstrap-switch.min.css" /> | |||
<Content Include="Content\bootstrap-theme.css" /> | |||
<Content Include="Content\bootstrap-theme.min.css" /> | |||
<Content Include="Content\bootstrap.css" /> | |||
<Content Include="Content\bootstrap.min.css" /> | |||
<Content Include="Content\font-awesome.css" /> | |||
<Content Include="Content\font-awesome.min.css" /> | |||
<Content Include="Content\Highlight\agate.css" /> | |||
@@ -429,6 +433,7 @@ | |||
<Content Include="Content\Highlight\zenburn.css" /> | |||
<Content Include="Content\jquery.tocify.css" /> | |||
<Content Include="Fonts\fontawesome-webfont.svg" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.svg" /> | |||
<Content Include="Migrations\InitializeTransfers.sql" /> | |||
<Content Include="Migrations\SetCaseSensitivity.sql" /> | |||
<Content Include="Scripts\audioplayer.min.js" /> | |||
@@ -437,16 +442,13 @@ | |||
<Content Include="Scripts\bootstrap-markdown.js" /> | |||
<Content Include="Scripts\bootstrap-switch.js" /> | |||
<Content Include="Scripts\bootstrap-switch.min.js" /> | |||
<Content Include="Scripts\bootstrap.js" /> | |||
<Content Include="Scripts\bootstrap.min.js" /> | |||
<Content Include="Scripts\Crypto-js\aes.js" /> | |||
<Content Include="Areas\Upload\Scripts\EncryptionWorker.js" /> | |||
<Content Include="Areas\Upload\Scripts\Upload.js" /> | |||
<Content Include="Content\bootstrap-markdown.min.css" /> | |||
<Content Include="Content\bootstrap-theme.css" /> | |||
<Content Include="Content\bootstrap-theme.min.css" /> | |||
<Content Include="Content\bootstrap.css" /> | |||
<Content Include="Content\bootstrap.min.css" /> | |||
<Content Include="Content\dropzone.css" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.svg" /> | |||
<Content Include="Images\favicon.ico" /> | |||
<Content Include="Images\logo-black-io.svg" /> | |||
<Content Include="Images\logo-black.svg" /> | |||
@@ -476,14 +478,6 @@ | |||
<Content Include="Areas\User\Views\web.config" /> | |||
<Content Include="Areas\User\Views\_ViewStart.cshtml" /> | |||
<Content Include="Areas\User\Views\User\Index.cshtml" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.woff2" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.woff" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.ttf" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.eot" /> | |||
<Content Include="Content\bootstrap.min.css.map" /> | |||
<Content Include="Content\bootstrap.css.map" /> | |||
<Content Include="Content\bootstrap-theme.min.css.map" /> | |||
<Content Include="Content\bootstrap-theme.css.map" /> | |||
<Content Include="Areas\Blog\Views\Blog\Posts.cshtml" /> | |||
<Content Include="Areas\Blog\Views\Blog\Post.cshtml" /> | |||
<Content Include="Areas\Blog\Views\Blog\ViewPost.cshtml" /> | |||
@@ -557,13 +551,19 @@ | |||
<Content Include="Fonts\fontawesome-webfont.woff" /> | |||
<Content Include="Fonts\fontawesome-webfont.ttf" /> | |||
<Content Include="Fonts\fontawesome-webfont.eot" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.woff2" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.woff" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.ttf" /> | |||
<Content Include="Fonts\glyphicons-halflings-regular.eot" /> | |||
<Content Include="Content\bootstrap.min.css.map" /> | |||
<Content Include="Content\bootstrap.css.map" /> | |||
<Content Include="Content\bootstrap-theme.min.css.map" /> | |||
<Content Include="Content\bootstrap-theme.css.map" /> | |||
<None Include="Properties\PublishProfiles\Teknik Dev.pubxml" /> | |||
<None Include="Properties\PublishProfiles\Teknik Production.pubxml" /> | |||
<None Include="Scripts\jquery-2.1.4.intellisense.js" /> | |||
<Content Include="Scripts\bootbox\bootbox.min.js" /> | |||
<Content Include="Scripts\bootstrap-select.js" /> | |||
<Content Include="Scripts\bootstrap.js" /> | |||
<Content Include="Scripts\bootstrap.min.js" /> | |||
<Content Include="Scripts\common.js" /> | |||
<Content Include="Scripts\Crypto-js\enc-base64.js" /> | |||
<Content Include="Scripts\Crypto-js\enc-utf16.js" /> | |||
@@ -573,9 +573,11 @@ | |||
<Content Include="Scripts\Dropzone\dropzone.js" /> | |||
<Content Include="Scripts\FileSaver.js" /> | |||
<Content Include="Scripts\Highlight\highlight.pack.js" /> | |||
<None Include="Scripts\jquery-2.2.3-vsdoc.js" /> | |||
<Content Include="Scripts\jquery-2.2.3.js" /> | |||
<Content Include="Scripts\jquery-2.2.3.min.js" /> | |||
<None Include="Scripts\jquery-3.1.1.intellisense.js" /> | |||
<Content Include="Scripts\jquery-3.1.1.js" /> | |||
<Content Include="Scripts\jquery-3.1.1.min.js" /> | |||
<Content Include="Scripts\jquery-3.1.1.slim.js" /> | |||
<Content Include="Scripts\jquery-3.1.1.slim.min.js" /> | |||
<Content Include="Scripts\jquery-ui.widgets.js" /> | |||
<Content Include="Scripts\jquery.blockUI.js" /> | |||
<Content Include="Scripts\jquery.fileupload.js" /> | |||
@@ -623,8 +625,9 @@ | |||
<Content Include="Areas\User\Views\User\Login.cshtml" /> | |||
<Content Include="Areas\User\Views\User\Register.cshtml" /> | |||
<Content Include="Areas\Dev\Views\Dev\Index.cshtml" /> | |||
<Content Include="Scripts\jquery-2.2.3.min.map" /> | |||
<Content Include="Areas\User\Views\User\_LoginModalPartial.cshtml" /> | |||
<Content Include="Scripts\jquery-3.1.1.slim.min.map" /> | |||
<Content Include="Scripts\jquery-3.1.1.min.map" /> | |||
</ItemGroup> | |||
<ItemGroup> | |||
<Folder Include="Areas\About\Models\" /> | |||
@@ -723,12 +726,12 @@ | |||
</FlavorProperties> | |||
</VisualStudio> | |||
</ProjectExtensions> | |||
<Import Project="..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets')" /> | |||
<Import Project="..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets')" /> | |||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |||
<PropertyGroup> | |||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |||
</PropertyGroup> | |||
<Error Condition="!Exists('..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.5.4\build\dotnet\GitVersionTask.targets'))" /> | |||
<Error Condition="!Exists('..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.3.6.3\build\dotnet\GitVersionTask.targets'))" /> | |||
</Target> | |||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||
Other similar extension points exist, see Microsoft.Common.targets. |
@@ -1,16 +1,16 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<packages> | |||
<package id="Antlr" version="3.5.0.2" targetFramework="net452" userInstalled="true" /> | |||
<package id="bootstrap" version="3.3.6" targetFramework="net452" userInstalled="true" /> | |||
<package id="bootstrap" version="3.3.7" targetFramework="net452" userInstalled="true" /> | |||
<package id="Bootstrap.Flat" version="3.3.4" targetFramework="net452" /> | |||
<package id="Bootstrap.Switch" version="3.3.2.1" targetFramework="net452" /> | |||
<package id="BouncyCastle" version="1.8.1" targetFramework="net452" /> | |||
<package id="EntityFramework" version="6.1.3" targetFramework="net452" userInstalled="true" /> | |||
<package id="FontAwesome" version="4.6.3" targetFramework="net452" userInstalled="true" /> | |||
<package id="GitVersionTask" version="3.5.4" targetFramework="net452" developmentDependency="true" /> | |||
<package id="GitVersionTask" version="3.6.3" targetFramework="net452" developmentDependency="true" /> | |||
<package id="Inferno" version="1.3.0" targetFramework="net452" userInstalled="true" /> | |||
<package id="jQuery" version="2.2.3" targetFramework="net452" userInstalled="true" /> | |||
<package id="jQuery.Validation" version="1.15.0" targetFramework="net452" userInstalled="true" /> | |||
<package id="jQuery" version="3.1.1" targetFramework="net452" userInstalled="true" /> | |||
<package id="jQuery.Validation" version="1.15.1" targetFramework="net452" userInstalled="true" /> | |||
<package id="MarkdownDeep.Full" version="1.5" targetFramework="net452" /> | |||
<package id="MarkdownDeep.NET" version="1.5" targetFramework="net452" /> | |||
<package id="MarkdownHelper" version="1.3" targetFramework="net452" /> | |||
@@ -26,9 +26,9 @@ | |||
<package id="MySql.Data" version="6.9.9" targetFramework="net452" /> | |||
<package id="nClam" version="2.0.6.0" targetFramework="net452" /> | |||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" userInstalled="true" /> | |||
<package id="Piwik.Tracker" version="2.8.0.0" targetFramework="net452" /> | |||
<package id="QRCoder" version="1.1.9" targetFramework="net452" /> | |||
<package id="Piwik.Tracker" version="2.16.0.0" targetFramework="net452" /> | |||
<package id="QRCoder" version="1.2.2" targetFramework="net452" /> | |||
<package id="Respond" version="1.4.2" targetFramework="net452" userInstalled="true" /> | |||
<package id="TwoStepsAuthenticator" version="1.1.0" targetFramework="net452" /> | |||
<package id="TwoStepsAuthenticator" version="1.2.0" targetFramework="net452" /> | |||
<package id="WebGrease" version="1.6.0" targetFramework="net46" userInstalled="true" /> | |||
</packages> |