diff --git a/CQRSGui/Content/Site.css b/CQRSGui/Content/Site.css index db0a13e..a9d9e65 100644 --- a/CQRSGui/Content/Site.css +++ b/CQRSGui/Content/Site.css @@ -38,7 +38,7 @@ p, ul line-height: 1.6em; } -/* HEADINGS +/* HEADINGS ----------------------------------------------------------*/ h1, h2, h3, h4, h5, h6 { @@ -70,17 +70,17 @@ h5, h6 font-size: 1em; } -/* this rule styles

tags that are the +/* this rule styles

tags that are the first child of the left and right table columns */ .rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 { margin-top: 0; } -/* PRIMARY LAYOUT ELEMENTS +/* PRIMARY LAYOUT ELEMENTS ----------------------------------------------------------*/ -/* you can specify a greater or lesser percentage for the +/* you can specify a greater or lesser percentage for the page width. Or, you can specify an exact pixel width. */ .page { @@ -127,7 +127,7 @@ page width. Or, you can specify an exact pixel width. */ font-size: .9em; } -/* TAB MENU +/* TAB MENU ----------------------------------------------------------*/ ul#menu { @@ -181,35 +181,35 @@ ul#menu li.selected a color: #000; } -/* FORM LAYOUT ELEMENTS +/* FORM LAYOUT ELEMENTS ----------------------------------------------------------*/ -fieldset +fieldset { margin: 1em 0; padding: 1em; border: 1px solid #CCC; } -fieldset p +fieldset p { margin: 2px 12px 10px 10px; } -legend +legend { font-size: 1.1em; font-weight: 600; padding: 2px 4px 8px 4px; } -input[type="text"] +input[type="text"] { width: 200px; border: 1px solid #CCC; } -input[type="password"] +input[type="password"] { width: 200px; border: 1px solid #CCC; @@ -218,15 +218,15 @@ input[type="password"] /* TABLE ----------------------------------------------------------*/ -table +table { border: solid 1px #e8eef4; border-collapse: collapse; } -table td +table td { - padding: 5px; + padding: 5px; border: solid 1px #e8eef4; } @@ -234,11 +234,11 @@ table th { padding: 6px 5px; text-align: left; - background-color: #e8eef4; - border: solid 1px #e8eef4; + background-color: #e8eef4; + border: solid 1px #e8eef4; } -/* MISC +/* MISC ----------------------------------------------------------*/ .clear { diff --git a/CQRSGui/Global.asax.cs b/CQRSGui/Global.asax.cs index 1850429..a20d242 100644 --- a/CQRSGui/Global.asax.cs +++ b/CQRSGui/Global.asax.cs @@ -8,7 +8,7 @@ namespace CQRSGui { - // Note: For instructions on enabling IIS6 or IIS7 classic mode, + // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplication : System.Web.HttpApplication diff --git a/CQRSGui/Properties/AssemblyInfo.cs b/CQRSGui/Properties/AssemblyInfo.cs index a270f95..1419384 100644 --- a/CQRSGui/Properties/AssemblyInfo.cs +++ b/CQRSGui/Properties/AssemblyInfo.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CQRSGui")] @@ -14,8 +14,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -25,11 +25,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Revision and Build Numbers +// You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CQRSGui/Scripts/MicrosoftAjax.debug.js b/CQRSGui/Scripts/MicrosoftAjax.debug.js index a5f7942..1a294eb 100644 --- a/CQRSGui/Scripts/MicrosoftAjax.debug.js +++ b/CQRSGui/Scripts/MicrosoftAjax.debug.js @@ -7,7 +7,7 @@ //----------------------------------------------------------------------- // MicrosoftAjax.js // Microsoft AJAX Framework. - + Function.__typeName = 'Function'; Function.__class = true; Function.createCallback = function Function$createCallback(method, context) { @@ -100,19 +100,19 @@ Function._validateParameterCount = function Function$_validateParameterCount(par if (param.optional || param.parameterArray) { minParams--; } - } + } if (actualLen < minParams) { error = true; } } else if (validateParameterCount && (actualLen > expectedLen)) { - error = true; + error = true; for (i = 0; i < expectedLen; i++) { if (expectedParams[i].parameterArray) { - error = false; + error = false; break; } - } + } } if (error) { var e = Error.parameterCount(); @@ -221,7 +221,7 @@ Function._validateParameterType = function Function$_validateParameterType(param } return null; } - + Error.__typeName = 'Error'; Error.__class = true; Error.create = function Error$create(message, errorInfo) { @@ -444,7 +444,7 @@ Error.prototype.popStackFrame = function Error$popStackFrame() { stackFrames.shift(); this.stack = stackFrames.join("\n"); } - + Object.__typeName = 'Object'; Object.__class = true; Object.getType = function Object$getType(instance) { @@ -471,7 +471,7 @@ Object.getTypeName = function Object$getTypeName(instance) { if (e) throw e; return Object.getType(instance).getName(); } - + String.__typeName = 'String'; String.__class = true; String.prototype.endsWith = function String$endsWith(suffix) { @@ -574,7 +574,7 @@ String._toFormattedString = function String$_toFormattedString(useLocale, args) } return result; } - + Boolean.__typeName = 'Boolean'; Boolean.__class = true; Boolean.parse = function Boolean$parse(value) { @@ -590,16 +590,16 @@ Boolean.parse = function Boolean$parse(value) { if (v === 'true') return true; throw Error.argumentOutOfRange('value', value, Sys.Res.boolTrueOrFalse); } - + Date.__typeName = 'Date'; Date.__class = true; - + Number.__typeName = 'Number'; Number.__class = true; - + RegExp.__typeName = 'RegExp'; RegExp.__class = true; - + if (!window) this.window = this; window.Type = Function; Type.__fullyQualifiedIdentifierRegExp = new RegExp("^[^.0-9 \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\]([^ \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\]*[^. \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\])?$", "i"); @@ -970,7 +970,7 @@ Type._registerNamespace = function Type$_registerNamespace(namespacePath) { Type._checkDependency = function Type$_checkDependency(dependency, featureName) { var scripts = Type._registerScript._scripts, isDependent = (scripts ? (!!scripts[dependency]) : false); if ((typeof(featureName) !== 'undefined') && !isDependent) { - throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded, + throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded, featureName, dependency)); } return isDependent; @@ -1028,7 +1028,7 @@ Sys._isDomElement = function Sys$_isDomElement(obj) { } return !val; } - + Array.__typeName = 'Array'; Array.__class = true; Array.add = Array.enqueue = function Array$enqueue(array, item) { @@ -1214,7 +1214,7 @@ Type._registerScript._scripts = { "MicrosoftAjaxHistory.js": true, "MicrosoftAjaxNetwork.js" : true, "MicrosoftAjaxWebServices.js": true }; - + Sys.IDisposable = function Sys$IDisposable() { throw Error.notImplemented(); } @@ -1225,7 +1225,7 @@ Sys.IDisposable.prototype = { dispose: Sys$IDisposable$dispose } Sys.IDisposable.registerInterface('Sys.IDisposable'); - + Sys.StringBuilder = function Sys$StringBuilder(initialText) { /// /// @@ -1310,7 +1310,7 @@ Sys.StringBuilder.prototype = { toString: Sys$StringBuilder$toString } Sys.StringBuilder.registerClass('Sys.StringBuilder'); - + Sys.Browser = {}; Sys.Browser.InternetExplorer = {}; Sys.Browser.Firefox = {}; @@ -1326,7 +1326,7 @@ if (navigator.userAgent.indexOf(' MSIE ') > -1) { Sys.Browser.version = parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]); if (Sys.Browser.version >= 8) { if (document.documentMode >= 7) { - Sys.Browser.documentMode = document.documentMode; + Sys.Browser.documentMode = document.documentMode; } } Sys.Browser.hasDebuggerStatement = true; @@ -1345,14 +1345,14 @@ else if (navigator.userAgent.indexOf(' AppleWebKit/') > -1) { else if (navigator.userAgent.indexOf('Opera/') > -1) { Sys.Browser.agent = Sys.Browser.Opera; } - + Sys.EventArgs = function Sys$EventArgs() { /// if (arguments.length !== 0) throw Error.parameterCount(); } Sys.EventArgs.registerClass('Sys.EventArgs'); Sys.EventArgs.Empty = new Sys.EventArgs(); - + Sys.CancelEventArgs = function Sys$CancelEventArgs() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -1375,7 +1375,7 @@ Sys.CancelEventArgs.prototype = { } Sys.CancelEventArgs.registerClass('Sys.CancelEventArgs', Sys.EventArgs); Type.registerNamespace('Sys.UI'); - + Sys._Debug = function Sys$_Debug() { /// /// @@ -1536,7 +1536,7 @@ Sys._Debug.prototype = { Sys._Debug.registerClass('Sys._Debug'); Sys.Debug = new Sys._Debug(); Sys.Debug.isDebug = true; - + function Sys$Enum$parse(value, ignoreCase) { /// /// @@ -1922,7 +1922,7 @@ Sys.Observer._setValue = function Sys$Observer$_setValue(target, propertyName, v var getter, setter, mainTarget = target, path = propertyName.split('.'); for (var i = 0, l = (path.length - 1); i < l ; i++) { var name = path[i]; - getter = target["get_" + name]; + getter = target["get_" + name]; if (typeof (getter) === "function") { target = getter.call(target); } @@ -1933,7 +1933,7 @@ Sys.Observer._setValue = function Sys$Observer$_setValue(target, propertyName, v if ((target === null) || (type === "undefined")) { throw Error.invalidOperation(String.format(Sys.Res.nullReferenceInPath, propertyName)); } - } + } var currentValue, lastPath = path[l]; getter = target["get_" + lastPath]; setter = target["set_" + lastPath]; @@ -2193,7 +2193,7 @@ Sys.Observer._arrayMethods = { /// Sys.Observer.clear(this); }, - insert: function(index, item) { + insert: function(index, item) { /// /// /// @@ -2316,7 +2316,7 @@ Date._getEraYear = function Date$_getEraYear(date, dtf, era, sortable) { var year = date.getFullYear(); if (!sortable && dtf.eras) { year -= dtf.eras[era + 3]; - } + } return year; } Date._getParseRegExp = function Date$_getParseRegExp(dtf, format) { @@ -2445,7 +2445,7 @@ Date._parseExact = function Date$_parseExact(value, format, cultureInfo) { parseInfo = Date._getParseRegExp(dtf, format), match = new RegExp(parseInfo.regExp).exec(value); if (match === null) return null; - + var groups = parseInfo.groups, era = null, year = null, month = null, date = null, weekDay = null, hour = 0, hourOffset, min = 0, sec = 0, msec = 0, tzMinOffset = null, @@ -2660,7 +2660,7 @@ Date.prototype._toFormattedString = function Date$_toFormattedString(format, cul } return year.toString(); } - + var foundDay, checkedDay, dayPartRegExp = /([^d]|^)(d|dd)([^d]|$)/g; function hasDay() { if (foundDay || checkedDay) { @@ -2670,7 +2670,7 @@ Date.prototype._toFormattedString = function Date$_toFormattedString(format, cul checkedDay = true; return foundDay; } - + var quoteCount = 0, tokenRegExp = Date._getTokenRegExp(), converted; @@ -2687,7 +2687,7 @@ Date.prototype._toFormattedString = function Date$_toFormattedString(format, cul ret.append(ar[0]); continue; } - + function getPart(date, part) { if (converted) { return converted[part]; @@ -2843,7 +2843,7 @@ Number.parseInvariant = function Number$parseInvariant(value) { } Number._parse = function Number$_parse(value, cultureInfo) { value = value.trim(); - + if (value.match(/^[+-]?infinity$/i)) { return parseFloat(value); } @@ -2854,14 +2854,14 @@ Number._parse = function Number$_parse(value, cultureInfo) { var signInfo = Number._parseNumberNegativePattern(value, numFormat, numFormat.NumberNegativePattern); var sign = signInfo[0]; var num = signInfo[1]; - + if ((sign === '') && (numFormat.NumberNegativePattern !== 1)) { signInfo = Number._parseNumberNegativePattern(value, numFormat, 1); sign = signInfo[0]; num = signInfo[1]; } if (sign === '') sign = '+'; - + var exponent; var intAndFraction; var exponentPos = num.indexOf('e'); @@ -2874,7 +2874,7 @@ Number._parse = function Number$_parse(value, cultureInfo) { intAndFraction = num.substr(0, exponentPos); exponent = num.substr(exponentPos + 1); } - + var integer; var fraction; var decimalPos = intAndFraction.indexOf(numFormat.NumberDecimalSeparator); @@ -2886,13 +2886,13 @@ Number._parse = function Number$_parse(value, cultureInfo) { integer = intAndFraction.substr(0, decimalPos); fraction = intAndFraction.substr(decimalPos + numFormat.NumberDecimalSeparator.length); } - + integer = integer.split(numFormat.NumberGroupSeparator).join(''); var altNumGroupSeparator = numFormat.NumberGroupSeparator.replace(/\u00A0/g, " "); if (numFormat.NumberGroupSeparator !== altNumGroupSeparator) { integer = integer.split(altNumGroupSeparator).join(''); } - + var p = sign + integer; if (fraction !== null) { p += '.' + fraction; @@ -2911,12 +2911,12 @@ Number._parse = function Number$_parse(value, cultureInfo) { } Number._parseNumberNegativePattern = function Number$_parseNumberNegativePattern(value, numFormat, numberNegativePattern) { var neg = numFormat.NegativeSign; - var pos = numFormat.PositiveSign; + var pos = numFormat.PositiveSign; switch (numberNegativePattern) { - case 4: + case 4: neg = ' ' + neg; pos = ' ' + pos; - case 3: + case 3: if (value.endsWith(neg)) { return ['-', value.substr(0, value.length - neg.length)]; } @@ -2924,10 +2924,10 @@ Number._parseNumberNegativePattern = function Number$_parseNumberNegativePattern return ['+', value.substr(0, value.length - pos.length)]; } break; - case 2: + case 2: neg += ' '; pos += ' '; - case 1: + case 1: if (value.startsWith(neg)) { return ['-', value.substr(neg.length)]; } @@ -2935,7 +2935,7 @@ Number._parseNumberNegativePattern = function Number$_parseNumberNegativePattern return ['+', value.substr(pos.length)]; } break; - case 0: + case 0: if (value.startsWith('(') && value.endsWith(')')) { return ['-', value.substr(1, value.length - 2)]; } @@ -2974,7 +2974,7 @@ Number.prototype._toFormattedString = function Number$_toFormattedString(format, return this.toString(); } } - + var _percentPositivePattern = ["n %", "n%", "%n" ]; var _percentNegativePattern = ["-n %", "-n%", "-%n"]; var _numberNegativePattern = ["(n)","-n","- n","n-","n -"]; @@ -2986,7 +2986,7 @@ Number.prototype._toFormattedString = function Number$_toFormattedString(format, } return str; } - + function expandNumber(number, precision, groupSizes, sep, decimalChar) { Sys.Debug.assert(groupSizes.length > 0, "groupSizes must be an array of at least 1"); var curSize = groupSizes[0]; @@ -2997,19 +2997,19 @@ Number.prototype._toFormattedString = function Number$_toFormattedString(format, rounded = number; } number = rounded; - + var numberString = number.toString(); var right = ""; var exponent; - - + + var split = numberString.split(/e/i); numberString = split[0]; exponent = (split.length > 1 ? parseInt(split[1]) : 0); split = numberString.split('.'); numberString = split[0]; right = split.length > 1 ? split[1] : ""; - + var l; if (exponent > 0) { right = zeroPad(right, exponent, false); @@ -3031,7 +3031,7 @@ Number.prototype._toFormattedString = function Number$_toFormattedString(format, } right = decimalChar + right; } - else { + else { right = ""; } var stringIndex = numberString.length-1; @@ -3124,7 +3124,7 @@ Number.prototype._toFormattedString = function Number$_toFormattedString(format, } return ret; } - + Sys.CultureInfo = function Sys$CultureInfo(name, numberFormat, dateTimeFormat) { /// /// @@ -3222,7 +3222,7 @@ Sys.CultureInfo._parse = function Sys$CultureInfo$_parse(value) { Sys.CultureInfo.InvariantCulture = Sys.CultureInfo._parse({"name":"","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":true,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"\u00A4","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":true},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, dd MMMM yyyy HH:mm:ss","LongDatePattern":"dddd, dd MMMM yyyy","LongTimePattern":"HH:mm:ss","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"MM/dd/yyyy","ShortTimePattern":"HH:mm","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"yyyy MMMM","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":true,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]}); if (typeof(__cultureInfo) === "object") { Sys.CultureInfo.CurrentCulture = Sys.CultureInfo._parse(__cultureInfo); - delete __cultureInfo; + delete __cultureInfo; } else { Sys.CultureInfo.CurrentCulture = Sys.CultureInfo._parse({"name":"en-US","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":false,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"$","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":false},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, MMMM dd, yyyy h:mm:ss tt","LongDatePattern":"dddd, MMMM dd, yyyy","LongTimePattern":"h:mm:ss tt","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"M/d/yyyy","ShortTimePattern":"h:mm tt","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"MMMM, yyyy","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":false,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]}); @@ -3316,7 +3316,7 @@ Sys.Serialization.JavaScriptSerializer._serializeWithBuilder = function Sys$Seri } try { Array.add(prevObjects, object); - + if (Number.isInstanceOfType(object)){ Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(object, stringBuilder); } @@ -3326,10 +3326,10 @@ Sys.Serialization.JavaScriptSerializer._serializeWithBuilder = function Sys$Seri else if (String.isInstanceOfType(object)){ Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(object, stringBuilder); } - + else if (Array.isInstanceOfType(object)) { stringBuilder.append('['); - + for (i = 0; i < object.length; ++i) { if (i > 0) { stringBuilder.append(','); @@ -3362,7 +3362,7 @@ Sys.Serialization.JavaScriptSerializer._serializeWithBuilder = function Sys$Seri if (sort) properties.sort(); stringBuilder.append('{'); var needComma = false; - + for (i=0; i if (arguments.length !== 0) throw Error.parameterCount(); @@ -3549,7 +3549,7 @@ Sys.CommandEventArgs.prototype = { get_commandSource: Sys$CommandEventArgs$get_commandSource } Sys.CommandEventArgs.registerClass("Sys.CommandEventArgs", Sys.CancelEventArgs); - + Sys.INotifyPropertyChange = function Sys$INotifyPropertyChange() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -3571,7 +3571,7 @@ Sys.INotifyPropertyChange.prototype = { remove_propertyChanged: Sys$INotifyPropertyChange$remove_propertyChanged } Sys.INotifyPropertyChange.registerInterface('Sys.INotifyPropertyChange'); - + Sys.PropertyChangedEventArgs = function Sys$PropertyChangedEventArgs(propertyName) { /// /// @@ -3582,7 +3582,7 @@ Sys.PropertyChangedEventArgs = function Sys$PropertyChangedEventArgs(propertyNam Sys.PropertyChangedEventArgs.initializeBase(this); this._propertyName = propertyName; } - + function Sys$PropertyChangedEventArgs$get_propertyName() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -3592,7 +3592,7 @@ Sys.PropertyChangedEventArgs.prototype = { get_propertyName: Sys$PropertyChangedEventArgs$get_propertyName } Sys.PropertyChangedEventArgs.registerClass('Sys.PropertyChangedEventArgs', Sys.EventArgs); - + Sys.INotifyDisposing = function Sys$INotifyDisposing() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -3614,7 +3614,7 @@ Sys.INotifyDisposing.prototype = { remove_disposing: Sys$INotifyDisposing$remove_disposing } Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing"); - + Sys.Component = function Sys$Component() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -3850,7 +3850,7 @@ var $create = Sys.Component.create = function Sys$Component$create(type, propert } return component; } - + Sys.UI.MouseButton = function Sys$UI$MouseButton() { /// /// @@ -3865,7 +3865,7 @@ Sys.UI.MouseButton.prototype = { rightButton: 2 } Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton"); - + Sys.UI.Key = function Sys$UI$Key() { /// /// @@ -3902,7 +3902,7 @@ Sys.UI.Key.prototype = { del: 127 } Sys.UI.Key.registerEnum("Sys.UI.Key"); - + Sys.UI.Point = function Sys$UI$Point(x, y) { /// /// @@ -3918,7 +3918,7 @@ Sys.UI.Point = function Sys$UI$Point(x, y) { this.y = y; } Sys.UI.Point.registerClass('Sys.UI.Point'); - + Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height) { /// /// @@ -3942,7 +3942,7 @@ Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height) { this.width = width; } Sys.UI.Bounds.registerClass('Sys.UI.Bounds'); - + Sys.UI.DomEvent = function Sys$UI$DomEvent(eventObject) { /// /// @@ -4171,13 +4171,13 @@ Sys.UI.DomEvent._removeHandler = function Sys$UI$DomEvent$_removeHandler(element } Sys.UI.DomEvent._ensureDomNode = function Sys$UI$DomEvent$_ensureDomNode(element) { if (element.tagName && (element.tagName.toUpperCase() === "SCRIPT")) return; - + var doc = element.ownerDocument || element.document || element; if ((typeof(element.document) !== 'object') && (element != doc) && (typeof(element.nodeType) !== 'number')) { throw Error.argument("element", Sys.Res.argumentDomNode); } } - + Sys.UI.DomElement = function Sys$UI$DomElement() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -4289,7 +4289,7 @@ if (document.documentElement.getBoundingClientRect) { catch(ex) { } if (Sys.Browser.version <= 7) { - + var multiplier, before, rect, d = document.createElement("div"); d.style.cssText = "position:absolute !important;left:0px !important;right:0px !important;height:0px !important;width:1px !important;display:hidden !important"; try { @@ -4305,7 +4305,7 @@ if (document.documentElement.getBoundingClientRect) { offsetX = Math.floor(offsetX / multiplier); offsetY = Math.floor(offsetY / multiplier); } - } + } if ((document.documentMode || 0) < 8) { offsetX -= 2; offsetY -= 2; @@ -4635,7 +4635,7 @@ Sys.UI.DomElement._getCurrentStyle = function Sys$UI$DomElement$_getCurrentStyle } return computedStyle; } - + Sys.IContainer = function Sys$IContainer() { throw Error.notImplemented(); } @@ -4680,7 +4680,7 @@ Sys.IContainer.prototype = { getComponents: Sys$IContainer$getComponents } Sys.IContainer.registerInterface("Sys.IContainer"); - + Sys.ApplicationLoadEventArgs = function Sys$ApplicationLoadEventArgs(components, isPartialLoad) { /// /// @@ -4694,7 +4694,7 @@ Sys.ApplicationLoadEventArgs = function Sys$ApplicationLoadEventArgs(components, this._components = components; this._isPartialLoad = isPartialLoad; } - + function Sys$ApplicationLoadEventArgs$get_components() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -4710,7 +4710,7 @@ Sys.ApplicationLoadEventArgs.prototype = { get_isPartialLoad: Sys$ApplicationLoadEventArgs$get_isPartialLoad } Sys.ApplicationLoadEventArgs.registerClass('Sys.ApplicationLoadEventArgs', Sys.EventArgs); - + Sys._Application = function Sys$_Application() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -5024,7 +5024,7 @@ Sys._Application = function Sys$_Application() { init(); } Sys.UI.DomEvent.addHandler(window, "load", onload); - + if (document.addEventListener) { try { document.addEventListener("DOMContentLoaded", check = function() { @@ -5106,7 +5106,7 @@ Sys._Application.prototype = { Sys._Application.registerClass('Sys._Application', Sys.Component, Sys.IContainer); Sys.Application = new Sys._Application(); var $find = Sys.Application.findComponent; - + Sys.UI.Behavior = function Sys$UI$Behavior(element) { /// /// @@ -5233,7 +5233,7 @@ Sys.UI.Behavior.getBehaviorsByType = function Sys$UI$Behavior$getBehaviorsByType } return results; } - + Sys.UI.VisibilityMode = function Sys$UI$VisibilityMode() { /// /// @@ -5246,7 +5246,7 @@ Sys.UI.VisibilityMode.prototype = { collapse: 1 } Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode"); - + Sys.UI.Control = function Sys$UI$Control(element) { /// /// @@ -5284,7 +5284,7 @@ Sys.UI.Control = function Sys$UI$Control(element) { if (arguments.length !== 0) throw Error.parameterCount(); if (this._parent) return this._parent; if (!this._element) return null; - + var parentElement = this._element.parentNode; while (parentElement) { if (parentElement.control) { @@ -5468,7 +5468,7 @@ Sys._Application.prototype.get_stateString = function Sys$_Application$get_state /// if (arguments.length !== 0) throw Error.parameterCount(); var hash = null; - + if (Sys.Browser.agent === Sys.Browser.Firefox) { var href = window.location.href; var hashIndex = href.indexOf('#'); @@ -5483,7 +5483,7 @@ Sys._Application.prototype.get_stateString = function Sys$_Application$get_state else { hash = window.location.hash; } - + if ((hash.length > 0) && (hash.charAt(0) === '#')) { hash = hash.substring(1); } @@ -5612,18 +5612,18 @@ Sys._Application.prototype._ensureHistory = function Sys$_Application$_ensureHis } this._timerHandler = Function.createDelegate(this, this._onIdle); this._timerCookie = window.setTimeout(this._timerHandler, 100); - + try { this._initialState = this._deserializeState(this.get_stateString()); } catch(e) {} - + this._historyInitialized = true; } }; Sys._Application.prototype._navigate = function Sys$_Application$_navigate(entry) { this._ensureHistory(); var state = this._deserializeState(entry); - + if (this._uniqueId) { var oldServerEntry = this._state.__s || ''; var newServerEntry = state.__s || ''; @@ -5640,7 +5640,7 @@ Sys._Application.prototype._navigate = function Sys$_Application$_navigate(entry }; Sys._Application.prototype._onIdle = function Sys$_Application$_onIdle() { delete this._timerCookie; - + var entry = this.get_stateString(); if (entry !== this._currentEntry) { if (!this._ignoreTimer) { @@ -5729,13 +5729,13 @@ Sys._Application.prototype._setState = function Sys$_Application$_setState(entry var hashIndex = action.indexOf('#'); window.theForm.action = ((hashIndex !== -1) ? action.substring(0, hashIndex) : action) + '#' + entry; } - + if (this._historyFrame && this._historyPointIsNew) { this._ignoreIFrame = true; var frameDoc = this._historyFrame.contentWindow.document; frameDoc.open("javascript:''"); frameDoc.write("" + (title || document.title) + - "parent.Sys.Application._onIFrameLoad(" + + "parent.Sys.Application._onIFrameLoad(" + Sys.Serialization.JavaScriptSerializer.serialize(entry) + ");"); frameDoc.close(); @@ -5768,7 +5768,7 @@ Sys._Application.prototype._updateHiddenField = function Sys$_Application$_updat } } }; - + if (!window.XMLHttpRequest) { window.XMLHttpRequest = function window$XMLHttpRequest() { var progIDs = [ 'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP' ]; @@ -5783,7 +5783,7 @@ if (!window.XMLHttpRequest) { } } Type.registerNamespace('Sys.Net'); - + Sys.Net.WebRequestExecutor = function Sys$Net$WebRequestExecutor() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -5891,7 +5891,7 @@ Sys.Net.WebRequestExecutor.prototype = { getAllResponseHeaders: Sys$Net$WebRequestExecutor$getAllResponseHeaders } Sys.Net.WebRequestExecutor.registerClass('Sys.Net.WebRequestExecutor'); - + Sys.Net.XMLDOM = function Sys$Net$XMLDOM(markup) { /// /// @@ -5936,7 +5936,7 @@ Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() { this._aborted = false; this._started = false; this._onReadyStateChange = (function () { - + if (_this._xmlHttpRequest.readyState === 4 ) { try { if (typeof(_this._xmlHttpRequest.status) === "undefined") { @@ -5946,7 +5946,7 @@ Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() { catch(ex) { return; } - + _this._clearTimer(); _this._responseAvailable = true; _this._webRequest.completed(Sys.EventArgs.Empty); @@ -6127,11 +6127,11 @@ Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() { xml.documentElement.tagName === "parsererror") { return null; } - + if (xml.documentElement.firstChild && xml.documentElement.firstChild.tagName === "parsererror") { return null; } - + return xml; } function Sys$Net$XMLHttpExecutor$abort() { @@ -6147,8 +6147,8 @@ Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() { if (this._xmlHttpRequest && !this._responseAvailable) { this._xmlHttpRequest.onreadystatechange = Function.emptyMethod; this._xmlHttpRequest.abort(); - - this._xmlHttpRequest = null; + + this._xmlHttpRequest = null; this._webRequest.completed(Sys.EventArgs.Empty); } } @@ -6167,7 +6167,7 @@ Sys.Net.XMLHttpExecutor.prototype = { abort: Sys$Net$XMLHttpExecutor$abort } Sys.Net.XMLHttpExecutor.registerClass('Sys.Net.XMLHttpExecutor', Sys.Net.WebRequestExecutor); - + Sys.Net._WebRequestManager = function Sys$Net$_WebRequestManager() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -6272,7 +6272,7 @@ Sys.Net._WebRequestManager.prototype = { } Sys.Net._WebRequestManager.registerClass('Sys.Net._WebRequestManager'); Sys.Net.WebRequestManager = new Sys.Net._WebRequestManager(); - + Sys.Net.NetworkRequestEventArgs = function Sys$Net$NetworkRequestEventArgs(webRequest) { /// /// @@ -6292,7 +6292,7 @@ Sys.Net.NetworkRequestEventArgs.prototype = { get_webRequest: Sys$Net$NetworkRequestEventArgs$get_webRequest } Sys.Net.NetworkRequestEventArgs.registerClass('Sys.Net.NetworkRequestEventArgs', Sys.CancelEventArgs); - + Sys.Net.WebRequest = function Sys$Net$WebRequest() { /// if (arguments.length !== 0) throw Error.parameterCount(); @@ -6536,7 +6536,7 @@ Sys.Net.WebRequest._createUrl = function Sys$Net$WebRequest$_createUrl(url, quer : url; } Sys.Net.WebRequest.registerClass('Sys.Net.WebRequest'); - + Sys._ScriptLoaderTask = function Sys$_ScriptLoaderTask(scriptElement, completedCallback) { /// /// @@ -6577,14 +6577,14 @@ Sys._ScriptLoaderTask = function Sys$_ScriptLoaderTask(scriptElement, completedC } function Sys$_ScriptLoaderTask$_addScriptElementHandlers() { this._scriptLoadDelegate = Function.createDelegate(this, this._scriptLoadHandler); - + if (Sys.Browser.agent !== Sys.Browser.InternetExplorer) { this._scriptElement.readyState = 'loaded'; $addHandler(this._scriptElement, 'load', this._scriptLoadDelegate); } else { $addHandler(this._scriptElement, 'readystatechange', this._scriptLoadDelegate); - } + } if (this._scriptElement.addEventListener) { this._scriptErrorDelegate = Function.createDelegate(this, this._scriptErrorHandler); this._scriptElement.addEventListener('error', this._scriptErrorDelegate, false); @@ -6610,7 +6610,7 @@ Sys._ScriptLoaderTask = function Sys$_ScriptLoaderTask(scriptElement, completedC if(this._disposed) { return; } - + this._completedCallback(this.get_scriptElement(), false); } function Sys$_ScriptLoaderTask$_scriptLoadHandler() { @@ -6622,17 +6622,17 @@ Sys._ScriptLoaderTask = function Sys$_ScriptLoaderTask(scriptElement, completedC (scriptElement.readyState !== 'complete')) { return; } - + this._completedCallback(scriptElement, true); } Sys._ScriptLoaderTask.prototype = { get_scriptElement: Sys$_ScriptLoaderTask$get_scriptElement, dispose: Sys$_ScriptLoaderTask$dispose, execute: Sys$_ScriptLoaderTask$execute, - _addScriptElementHandlers: Sys$_ScriptLoaderTask$_addScriptElementHandlers, - _removeScriptElementHandlers: Sys$_ScriptLoaderTask$_removeScriptElementHandlers, + _addScriptElementHandlers: Sys$_ScriptLoaderTask$_addScriptElementHandlers, + _removeScriptElementHandlers: Sys$_ScriptLoaderTask$_removeScriptElementHandlers, _scriptErrorHandler: Sys$_ScriptLoaderTask$_scriptErrorHandler, - _scriptLoadHandler: Sys$_ScriptLoaderTask$_scriptLoadHandler + _scriptLoadHandler: Sys$_ScriptLoaderTask$_scriptLoadHandler } Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask", null, Sys.IDisposable); Sys._ScriptLoaderTask._clearScript = function Sys$_ScriptLoaderTask$_clearScript(scriptElement) { @@ -6641,7 +6641,7 @@ Sys._ScriptLoaderTask._clearScript = function Sys$_ScriptLoaderTask$_clearScript } } Type.registerNamespace('Sys.Net'); - + Sys.Net.WebServiceProxy = function Sys$Net$WebServiceProxy() { } function Sys$Net$WebServiceProxy$get_timeout() { @@ -6785,7 +6785,7 @@ Sys.Net.WebServiceProxy.invoke = function Sys$Net$WebServiceProxy$invoke(service ]); if (e) throw e; var schemeHost = (enableJsonp !== false) ? Sys.Net.WebServiceProxy._xdomain.exec(servicePath) : null, - tempCallback, jsonp = schemeHost && (schemeHost.length === 3) && + tempCallback, jsonp = schemeHost && (schemeHost.length === 3) && ((schemeHost[1] !== location.protocol) || (schemeHost[2] !== location.host)); useGet = jsonp || useGet; if (jsonp) { @@ -6814,7 +6814,7 @@ Sys.Net.WebServiceProxy.invoke = function Sys$Net$WebServiceProxy$invoke(service } loader.dispose(); delete Sys[tempCallback]; - tempCallback = null; + tempCallback = null; if ((typeof(statusCode) !== "undefined") && (statusCode !== 200)) { if (onFailure) { error = new Sys.Net.WebServiceError(false, @@ -6855,12 +6855,12 @@ Sys.Net.WebServiceProxy.invoke = function Sys$Net$WebServiceProxy$invoke(service request.add_completed(onComplete); if (timeout && timeout > 0) request.set_timeout(timeout); request.invoke(); - + function onComplete(response, eventArgs) { if (response.get_responseAvailable()) { var statusCode = response.get_statusCode(); var result = null; - + try { var contentType = response.getResponseHeader("Content-Type"); if (contentType.startsWith("application/json")) { @@ -6946,7 +6946,7 @@ Sys.Net.WebServiceProxy._generateTypedConstructor = function Sys$Net$WebServiceP } Sys._jsonp = 0; Sys.Net.WebServiceProxy._xdomain = /^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/; - + Sys.Net.WebServiceError = function Sys$Net$WebServiceError(timedOut, message, stackTrace, exceptionType, errorObject) { /// /// diff --git a/CQRSGui/Scripts/MicrosoftMvcAjax.debug.js b/CQRSGui/Scripts/MicrosoftMvcAjax.debug.js index eb68ba7..0198ef0 100644 --- a/CQRSGui/Scripts/MicrosoftMvcAjax.debug.js +++ b/CQRSGui/Scripts/MicrosoftMvcAjax.debug.js @@ -14,7 +14,7 @@ Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; } //////////////////////////////////////////////////////////////////////////////// // Sys.Mvc.InsertionMode -Sys.Mvc.InsertionMode = function() { +Sys.Mvc.InsertionMode = function() { /// /// /// @@ -23,8 +23,8 @@ Sys.Mvc.InsertionMode = function() { /// }; Sys.Mvc.InsertionMode.prototype = { - replace: 0, - insertBefore: 1, + replace: 0, + insertBefore: 1, insertAfter: 2 } Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false); @@ -63,7 +63,7 @@ Sys.Mvc.AjaxContext.prototype = { _response: null, _request: null, _updateTarget: null, - + get_data: function Sys_Mvc_AjaxContext$get_data() { /// if (this._response) { @@ -73,23 +73,23 @@ Sys.Mvc.AjaxContext.prototype = { return null; } }, - + get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() { /// return this._insertionMode; }, - + get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() { /// return this._loadingElement; }, - + get_object: function Sys_Mvc_AjaxContext$get_object() { /// var executor = this.get_response(); return (executor) ? executor.get_object() : null; }, - + get_response: function Sys_Mvc_AjaxContext$get_response() { /// return this._response; @@ -99,12 +99,12 @@ Sys.Mvc.AjaxContext.prototype = { this._response = value; return value; }, - + get_request: function Sys_Mvc_AjaxContext$get_request() { /// return this._request; }, - + get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() { /// return this._updateTarget; diff --git a/CQRSGui/Scripts/MicrosoftMvcValidation.debug.js b/CQRSGui/Scripts/MicrosoftMvcValidation.debug.js index 9896f90..f7fc0ee 100644 --- a/CQRSGui/Scripts/MicrosoftMvcValidation.debug.js +++ b/CQRSGui/Scripts/MicrosoftMvcValidation.debug.js @@ -48,7 +48,7 @@ Sys.Mvc.NumberValidator.create = function Sys_Mvc_NumberValidator$create(rule) { return Function.createDelegate(new Sys.Mvc.NumberValidator(), new Sys.Mvc.NumberValidator().validate); } Sys.Mvc.NumberValidator.prototype = { - + validate: function Sys_Mvc_NumberValidator$validate(value, context) { /// /// @@ -203,13 +203,13 @@ Sys.Mvc.FormContext.prototype = { _validationSummaryULElement: null, _formElement: null, replaceValidationSummary: false, - + addError: function Sys_Mvc_FormContext$addError(message) { /// /// this.addErrors([ message ]); }, - + addErrors: function Sys_Mvc_FormContext$addErrors(messages) { /// /// @@ -218,12 +218,12 @@ Sys.Mvc.FormContext.prototype = { this._onErrorCountChanged(); } }, - + clearErrors: function Sys_Mvc_FormContext$clearErrors() { Array.clear(this._errors); this._onErrorCountChanged(); }, - + _displayError: function Sys_Mvc_FormContext$_displayError() { if (this._validationSummaryElement) { if (this._validationSummaryULElement) { @@ -238,7 +238,7 @@ Sys.Mvc.FormContext.prototype = { Sys.UI.DomElement.addCssClass(this._validationSummaryElement, Sys.Mvc.FormContext._validationSummaryErrorCss); } }, - + _displaySuccess: function Sys_Mvc_FormContext$_displaySuccess() { var validationSummaryElement = this._validationSummaryElement; if (validationSummaryElement) { @@ -250,12 +250,12 @@ Sys.Mvc.FormContext.prototype = { Sys.UI.DomElement.addCssClass(validationSummaryElement, Sys.Mvc.FormContext._validationSummaryValidCss); } }, - + enableDynamicValidation: function Sys_Mvc_FormContext$enableDynamicValidation() { Sys.UI.DomEvent.addHandler(this._formElement, 'click', this._onClickHandler); Sys.UI.DomEvent.addHandler(this._formElement, 'submit', this._onSubmitHandler); }, - + _findSubmitButton: function Sys_Mvc_FormContext$_findSubmitButton(element) { /// /// @@ -276,13 +276,13 @@ Sys.Mvc.FormContext.prototype = { } return null; }, - + _form_OnClick: function Sys_Mvc_FormContext$_form_OnClick(e) { /// /// this._submitButtonClicked = this._findSubmitButton(e.target); }, - + _form_OnSubmit: function Sys_Mvc_FormContext$_form_OnSubmit(e) { /// /// @@ -296,7 +296,7 @@ Sys.Mvc.FormContext.prototype = { e.preventDefault(); } }, - + _onErrorCountChanged: function Sys_Mvc_FormContext$_onErrorCountChanged() { if (!this._errors.length) { this._displaySuccess(); @@ -305,7 +305,7 @@ Sys.Mvc.FormContext.prototype = { this._displayError(); } }, - + validate: function Sys_Mvc_FormContext$validate(eventName) { /// /// @@ -386,13 +386,13 @@ Sys.Mvc.FieldContext.prototype = { formContext: null, replaceValidationMessageContents: false, validationMessageElement: null, - + addError: function Sys_Mvc_FieldContext$addError(message) { /// /// this.addErrors([ message ]); }, - + addErrors: function Sys_Mvc_FieldContext$addErrors(messages) { /// /// @@ -401,12 +401,12 @@ Sys.Mvc.FieldContext.prototype = { this._onErrorCountChanged(); } }, - + clearErrors: function Sys_Mvc_FieldContext$clearErrors() { Array.clear(this._errors); this._onErrorCountChanged(); }, - + _displayError: function Sys_Mvc_FieldContext$_displayError() { var validationMessageElement = this.validationMessageElement; if (validationMessageElement) { @@ -423,7 +423,7 @@ Sys.Mvc.FieldContext.prototype = { Sys.UI.DomElement.addCssClass(element, Sys.Mvc.FieldContext._inputElementErrorCss); } }, - + _displaySuccess: function Sys_Mvc_FieldContext$_displaySuccess() { var validationMessageElement = this.validationMessageElement; if (validationMessageElement) { @@ -440,7 +440,7 @@ Sys.Mvc.FieldContext.prototype = { Sys.UI.DomElement.addCssClass(element, Sys.Mvc.FieldContext._inputElementValidCss); } }, - + _element_OnBlur: function Sys_Mvc_FieldContext$_element_OnBlur(e) { /// /// @@ -448,13 +448,13 @@ Sys.Mvc.FieldContext.prototype = { this.validate('blur'); } }, - + _element_OnChange: function Sys_Mvc_FieldContext$_element_OnChange(e) { /// /// e.target[Sys.Mvc.FieldContext._hasTextChangedTag] = true; }, - + _element_OnInput: function Sys_Mvc_FieldContext$_element_OnInput(e) { /// /// @@ -463,7 +463,7 @@ Sys.Mvc.FieldContext.prototype = { this.validate('input'); } }, - + _element_OnPropertyChange: function Sys_Mvc_FieldContext$_element_OnPropertyChange(e) { /// /// @@ -474,7 +474,7 @@ Sys.Mvc.FieldContext.prototype = { } } }, - + enableDynamicValidation: function Sys_Mvc_FieldContext$enableDynamicValidation() { var elements = this.elements; for (var i = 0; i < elements.length; i++) { @@ -492,7 +492,7 @@ Sys.Mvc.FieldContext.prototype = { Sys.UI.DomEvent.addHandler(element, 'blur', this._onBlurHandler); } }, - + _getErrorString: function Sys_Mvc_FieldContext$_getErrorString(validatorReturnValue, fieldErrorMessage) { /// /// @@ -508,13 +508,13 @@ Sys.Mvc.FieldContext.prototype = { } return null; }, - + _getStringValue: function Sys_Mvc_FieldContext$_getStringValue() { /// var elements = this.elements; return (elements.length > 0) ? elements[0].value : null; }, - + _markValidationFired: function Sys_Mvc_FieldContext$_markValidationFired() { var elements = this.elements; for (var i = 0; i < elements.length; i++) { @@ -522,7 +522,7 @@ Sys.Mvc.FieldContext.prototype = { element[Sys.Mvc.FieldContext._hasValidationFiredTag] = true; } }, - + _onErrorCountChanged: function Sys_Mvc_FieldContext$_onErrorCountChanged() { if (!this._errors.length) { this._displaySuccess(); @@ -531,7 +531,7 @@ Sys.Mvc.FieldContext.prototype = { this._displayError(); } }, - + validate: function Sys_Mvc_FieldContext$validate(eventName) { /// /// @@ -585,7 +585,7 @@ Sys.Mvc.RangeValidator.create = function Sys_Mvc_RangeValidator$create(rule) { Sys.Mvc.RangeValidator.prototype = { _minimum: null, _maximum: null, - + validate: function Sys_Mvc_RangeValidator$validate(value, context) { /// /// @@ -620,7 +620,7 @@ Sys.Mvc.RegularExpressionValidator.create = function Sys_Mvc_RegularExpressionVa } Sys.Mvc.RegularExpressionValidator.prototype = { _pattern: null, - + validate: function Sys_Mvc_RegularExpressionValidator$validate(value, context) { /// /// @@ -720,7 +720,7 @@ Sys.Mvc.RequiredValidator._validateTextualInput = function Sys_Mvc_RequiredValid return (!Sys.Mvc._validationUtil.stringIsNullOrEmpty(element.value)); } Sys.Mvc.RequiredValidator.prototype = { - + validate: function Sys_Mvc_RequiredValidator$validate(value, context) { /// /// @@ -772,7 +772,7 @@ Sys.Mvc.StringLengthValidator.create = function Sys_Mvc_StringLengthValidator$cr Sys.Mvc.StringLengthValidator.prototype = { _maxLength: 0, _minLength: 0, - + validate: function Sys_Mvc_StringLengthValidator$validate(value, context) { /// /// diff --git a/CQRSGui/Scripts/jquery-1.4.1-vsdoc.js b/CQRSGui/Scripts/jquery-1.4.1-vsdoc.js index 681241d..248bcf3 100644 --- a/CQRSGui/Scripts/jquery-1.4.1-vsdoc.js +++ b/CQRSGui/Scripts/jquery-1.4.1-vsdoc.js @@ -101,10 +101,10 @@ var jQuery = function( selector, context ) { // For matching the engine and version of the browser browserMatch, - + // Has the ready events already been bound? readyBound = false, - + // The functions to execute on DOM ready readyList = [], @@ -343,7 +343,7 @@ jQuery.fn = jQuery.prototype = { return jQuery.each( this, callback, args ); }, - + ready: function( fn ) { /// /// Binds a function to be executed whenever the DOM is ready to be traversed and manipulated. @@ -366,7 +366,7 @@ jQuery.fn = jQuery.prototype = { return this; }, - + eq: function( i ) { /// /// Reduce the set of matched elements to a single element. @@ -426,7 +426,7 @@ jQuery.fn = jQuery.prototype = { return callback.call( elem, i, elem ); })); }, - + end: function() { /// /// End the most recent 'destructive' operation, reverting the list of matched elements @@ -528,13 +528,13 @@ jQuery.extend({ noConflict: function( deep ) { /// /// Run this function to give control of the $ variable back - /// to whichever library first implemented it. This helps to make + /// to whichever library first implemented it. This helps to make /// sure that jQuery doesn't conflict with the $ object /// of other libraries. /// By using this function, you will only be able to access jQuery /// using the 'jQuery' variable. For example, where you used to do /// $("div p"), you now must do jQuery("div p"). - /// Part of Core + /// Part of Core /// /// @@ -546,10 +546,10 @@ jQuery.extend({ return jQuery; }, - + // Is the DOM ready to be used? Set to true once it occurs. isReady: false, - + // Handle when the DOM is ready ready: function() { /// @@ -585,7 +585,7 @@ jQuery.extend({ } } }, - + bindReady: function() { if ( readyBound ) { return; @@ -603,7 +603,7 @@ jQuery.extend({ if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); - + // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); @@ -612,7 +612,7 @@ jQuery.extend({ // ensure firing before onload, // maybe late but safe also for iframes document.attachEvent("onreadystatechange", DOMContentLoaded); - + // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); @@ -668,20 +668,20 @@ jQuery.extend({ if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { return false; } - + // Not own constructor property must be Object if ( obj.constructor && !hasOwnProperty.call(obj, "constructor") && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } - + // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. - + var key; for ( key in obj ) {} - + return key === undefined || hasOwnProperty.call( obj, key ); }, @@ -699,16 +699,16 @@ jQuery.extend({ } return true; }, - + error: function( msg ) { throw msg; }, - + parseJSON: function( data ) { if ( typeof data !== "string" || !data ) { return null; } - + // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@") @@ -915,7 +915,7 @@ jQuery.extend({ /// Filter items out of an array, by using a filter function. /// The specified function will be passed two arguments: The /// current array item and the index of the item in the array. The - /// function must return 'true' to keep the item in the array, + /// function must return 'true' to keep the item in the array, /// false to remove it. /// }); /// Part of JavaScript @@ -948,8 +948,8 @@ jQuery.extend({ map: function( elems, callback, arg ) { /// /// Translate all items in an array to another array of items. - /// The translation function that is provided to this method is - /// called for each item in the array and is passed one argument: + /// The translation function that is provided to this method is + /// called for each item in the array and is passed one argument: /// The item to be translated. /// The function can then return the translated value, 'null' /// (to remove the item), or an array of values - which will @@ -1126,7 +1126,7 @@ function evalScript( i, elem ) { // The value/s can be optionally by executed if its a function function access( elems, key, value, exec, fn, pass ) { var length = elems.length; - + // Setting many attributes if ( typeof key === "object" ) { for ( var k in key ) { @@ -1134,19 +1134,19 @@ function access( elems, key, value, exec, fn, pass ) { } return elems; } - + // Setting one attribute if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = !pass && exec && jQuery.isFunction(value); - + for ( var i = 0; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } - + return elems; } - + // Getting an attribute return length ? fn( elems[0], key ) : null; } @@ -1277,20 +1277,20 @@ function now() { // // Technique from Juriy Zaytsev // // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ - // var eventSupported = function( eventName ) { - // var el = document.createElement("div"); - // eventName = "on" + eventName; - - // var isSupported = (eventName in el); - // if ( !isSupported ) { - // el.setAttribute(eventName, "return;"); - // isSupported = typeof el[eventName] === "function"; - // } - // el = null; - - // return isSupported; + // var eventSupported = function( eventName ) { + // var el = document.createElement("div"); + // eventName = "on" + eventName; + + // var isSupported = (eventName in el); + // if ( !isSupported ) { + // el.setAttribute(eventName, "return;"); + // isSupported = typeof el[eventName] === "function"; + // } + // el = null; + + // return isSupported; // }; - + jQuery.support.submitBubbles = false; jQuery.support.changeBubbles = false; @@ -1315,7 +1315,7 @@ var emptyObject = {}; jQuery.extend({ cache: {}, - + expando:expando, // The following elements throw uncatchable exceptions if you @@ -1357,7 +1357,7 @@ jQuery.extend({ } // Compute a unique ID for the element - if ( !id ) { + if ( !id ) { id = ++uuid; } @@ -1843,7 +1843,7 @@ jQuery.fn.extend({ if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) { return elem.getAttribute("value") === null ? "on" : elem.value; } - + // Everything else, we just grab the value return (elem.value || "").replace(rreturn, ""); @@ -1904,7 +1904,7 @@ jQuery.extend({ height: true, offset: true }, - + attr: function( elem, name, value, pass ) { /// /// This method is internal. @@ -1938,7 +1938,7 @@ jQuery.extend({ var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; - + // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; @@ -2120,17 +2120,17 @@ jQuery.event = { } } } - - if ( special.add ) { - var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); - if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { - modifiedHandler.guid = modifiedHandler.guid || handler.guid; - modifiedHandler.data = modifiedHandler.data || handler.data; - modifiedHandler.type = modifiedHandler.type || handler.type; - handler = modifiedHandler; - } - } - + + if ( special.add ) { + var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); + if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { + modifiedHandler.guid = modifiedHandler.guid || handler.guid; + modifiedHandler.data = modifiedHandler.data || handler.data; + modifiedHandler.type = modifiedHandler.type || handler.type; + handler = modifiedHandler; + } + } + // Add the function to the element's handler list handlers[ handler.guid ] = handler; @@ -2481,11 +2481,11 @@ jQuery.event = { add: function( proxy, data, namespaces, live ) { jQuery.extend( proxy, data || {} ); - proxy.guid += data.selector + data.live; + proxy.guid += data.selector + data.live; data.liveProxy = proxy; - jQuery.event.add( this, data.live, liveHandler, data ); - + jQuery.event.add( this, data.live, liveHandler, data ); + }, remove: function( namespaces ) { @@ -2563,7 +2563,7 @@ jQuery.Event.prototype = { if ( !e ) { return; } - + // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); @@ -2658,7 +2658,7 @@ jQuery.event.special.submit = { return trigger( "submit", this, arguments ); } }); - + jQuery.event.add(this, "keypress.specialSubmit." + fn.guid, function( e ) { var elem = e.target, type = elem.type; @@ -2719,7 +2719,7 @@ function testChange( e ) { if ( e.type !== "focusout" || elem.type !== "radio" ) { jQuery.data( elem, "_change_data", val ); } - + if ( data === undefined || val === data ) { return; } @@ -2732,7 +2732,7 @@ function testChange( e ) { jQuery.event.special.change = { filters: { - focusout: testChange, + focusout: testChange, click: function( e ) { var elem = e.target, type = elem.type; @@ -2801,8 +2801,8 @@ if ( document.addEventListener ) { /// this.addEventListener( orig, handler, true ); - }, - teardown: function() { + }, + teardown: function() { /// /// This method is internal. /// @@ -2812,7 +2812,7 @@ if ( document.addEventListener ) { } }; - function handler( e ) { + function handler( e ) { e = jQuery.event.fix( e ); e.type = fix; return jQuery.event.handle.call( this, e ); @@ -2829,7 +2829,7 @@ if ( document.addEventListener ) { // } // return this; // } -// +// // if ( jQuery.isFunction( data ) ) { // fn = data; // data = undefined; @@ -2863,7 +2863,7 @@ jQuery.fn[ "bind" ] = function( type, data, fn ) { } return this; } - + if ( jQuery.isFunction( data ) ) { fn = data; data = undefined; @@ -2896,7 +2896,7 @@ jQuery.fn[ "one" ] = function( type, data, fn ) { } return this; } - + if ( jQuery.isFunction( data ) ) { fn = data; data = undefined; @@ -3018,7 +3018,7 @@ jQuery.fn.extend({ // type === "blur" ? "focusout" : // blur --> focusout // type === "hover" ? types.push("mouseleave") && "mouseenter" : // hover support // type; -// +// // if ( name === "live" ) { // // bind live handler // jQuery( this.context ).bind( liveConvert( type, this.selector ), { @@ -3030,7 +3030,7 @@ jQuery.fn.extend({ // jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); // } // } -// +// // return this; // } // }); @@ -3065,7 +3065,7 @@ jQuery.fn[ "live" ] = function( types, data, fn ) { type === "blur" ? "focusout" : // blur --> focusout type === "hover" ? types.push("mouseleave") && "mouseenter" : // hover support type; - + if ( "live" === "live" ) { // bind live handler jQuery( this.context ).bind( liveConvert( type, this.selector ), { @@ -3077,7 +3077,7 @@ jQuery.fn[ "live" ] = function( types, data, fn ) { jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); } } - + return this; } @@ -3107,7 +3107,7 @@ jQuery.fn[ "die" ] = function( types, data, fn ) { type === "blur" ? "focusout" : // blur --> focusout type === "hover" ? types.push("mouseleave") && "mouseenter" : // hover support type; - + if ( "die" === "live" ) { // bind live handler jQuery( this.context ).bind( liveConvert( type, this.selector ), { @@ -3119,7 +3119,7 @@ jQuery.fn[ "die" ] = function( types, data, fn ) { jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); } } - + return this; } @@ -3139,7 +3139,7 @@ function liveHandler( event ) { fn.altLive && jQuery.inArray(event.type, fn.altLive) > -1 ) { data = fn.data; - if ( !(data.beforeFilter && data.beforeFilter[event.type] && + if ( !(data.beforeFilter && data.beforeFilter[event.type] && !data.beforeFilter[event.type](event)) ) { selectors.push( fn.selector ); } @@ -3314,7 +3314,7 @@ jQuery.fn[ "dblclick" ] = function( fn ) { jQuery.fn[ "mousedown" ] = function( fn ) { /// - /// Binds a function to the mousedown event of each matched element. + /// Binds a function to the mousedown event of each matched element. /// /// The function to execute. /// @@ -3344,7 +3344,7 @@ jQuery.fn[ "mousemove" ] = function( fn ) { jQuery.fn[ "mouseover" ] = function( fn ) { /// - /// Bind a function to the mouseover event of each matched element. + /// Bind a function to the mouseover event of each matched element. /// /// The function to execute. /// @@ -3354,7 +3354,7 @@ jQuery.fn[ "mouseover" ] = function( fn ) { jQuery.fn[ "mouseout" ] = function( fn ) { /// - /// Bind a function to the mouseout event of each matched element. + /// Bind a function to the mouseout event of each matched element. /// /// The function to execute. /// @@ -3364,7 +3364,7 @@ jQuery.fn[ "mouseout" ] = function( fn ) { jQuery.fn[ "mouseenter" ] = function( fn ) { /// - /// Bind a function to the mouseenter event of each matched element. + /// Bind a function to the mouseenter event of each matched element. /// /// The function to execute. /// @@ -3374,7 +3374,7 @@ jQuery.fn[ "mouseenter" ] = function( fn ) { jQuery.fn[ "mouseleave" ] = function( fn ) { /// - /// Bind a function to the mouseleave event of each matched element. + /// Bind a function to the mouseleave event of each matched element. /// /// The function to execute. /// @@ -3505,20 +3505,20 @@ var Sizzle = function(selector, context, results, seed) { if ( context.nodeType !== 1 && context.nodeType !== 9 ) { return []; } - + if ( !selector || typeof selector !== "string" ) { return results; } var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context), soFar = selector; - + // Reset the position of the chunker regexp (start from head) while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) { soFar = m[3]; - + parts.push( m[1] ); - + if ( m[2] ) { extra = m[3]; break; @@ -3539,7 +3539,7 @@ var Sizzle = function(selector, context, results, seed) { if ( Expr.relative[ selector ] ) { selector += parts.shift(); } - + set = posProcess( selector, set ); } } @@ -3656,7 +3656,7 @@ Sizzle.find = function(expr, context, isXML){ for ( var i = 0, l = Expr.order.length; i < l; i++ ) { var type = Expr.order[i], match; - + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { var left = match[1]; match.splice(1,1); @@ -3930,7 +3930,7 @@ var Expr = Sizzle.selectors = { }, ATTR: function(match, curLoop, inplace, result, not, isXML){ var name = match[1].replace(/\\/g, ""); - + if ( !isXML && Expr.attrMap[name] ) { match[1] = Expr.attrMap[name]; } @@ -3956,7 +3956,7 @@ var Expr = Sizzle.selectors = { } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { return true; } - + return match; }, POS: function(match){ @@ -4082,18 +4082,18 @@ var Expr = Sizzle.selectors = { case 'only': case 'first': while ( (node = node.previousSibling) ) { - if ( node.nodeType === 1 ) { - return false; + if ( node.nodeType === 1 ) { + return false; } } - if ( type === "first" ) { - return true; + if ( type === "first" ) { + return true; } node = elem; case 'last': while ( (node = node.nextSibling) ) { - if ( node.nodeType === 1 ) { - return false; + if ( node.nodeType === 1 ) { + return false; } } return true; @@ -4103,20 +4103,20 @@ var Expr = Sizzle.selectors = { if ( first === 1 && last === 0 ) { return true; } - + var doneName = match[0], parent = elem.parentNode; - + if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { var count = 0; for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { node.nodeIndex = ++count; } - } + } parent.sizcache = doneName; } - + var diff = elem.nodeIndex - last; if ( first === 0 ) { return diff === 0; @@ -4192,7 +4192,7 @@ var makeArray = function(array, results) { results.push.apply( results, array ); return results; } - + return array; }; @@ -4384,7 +4384,7 @@ if ( document.querySelectorAll ) { if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { return; } - + Sizzle = function(query, context, extra, seed){ context = context || document; @@ -4395,7 +4395,7 @@ if ( document.querySelectorAll ) { return makeArray( context.querySelectorAll(query), extra ); } catch(e){} } - + return oldSizzle(query, context, extra, seed); }; @@ -4424,7 +4424,7 @@ if ( document.querySelectorAll ) { if ( div.getElementsByClassName("e").length === 1 ) { return; } - + Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function(match, context, isXML) { if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { @@ -4540,7 +4540,7 @@ var isXML = function(elem){ /// True if the parameter is an XML document; otherwise false. // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) + // (such as loading iframes in IE - #4833) var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; @@ -4703,7 +4703,7 @@ jQuery.fn.extend({ return this.pushStack( winnow(this, selector, true), "filter", selector ); }, - + is: function( selector ) { /// /// Checks the current selection against an expression and returns true, @@ -4742,7 +4742,7 @@ jQuery.fn.extend({ selector = selectors[i]; if ( !matches[selector] ) { - matches[selector] = jQuery.expr.match.POS.test( selector ) ? + matches[selector] = jQuery.expr.match.POS.test( selector ) ? jQuery( selector, context || this.context ) : selector; } @@ -4764,7 +4764,7 @@ jQuery.fn.extend({ return ret; } - var pos = jQuery.expr.match.POS.test( selectors ) ? + var pos = jQuery.expr.match.POS.test( selectors ) ? jQuery( selectors, context || this.context ) : null; return this.map(function( i, cur ) { @@ -4777,13 +4777,13 @@ jQuery.fn.extend({ return null; }); }, - + // Determine the position of an element within // the matched set of elements index: function( elem ) { /// /// Searches every matched element for the object and returns - /// the index of the element, if found, starting with zero. + /// the index of the element, if found, starting with zero. /// Returns -1 if the object wasn't found. /// Part of Core /// @@ -4877,7 +4877,7 @@ jQuery.each({ }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); - + if ( !runtil.test( name ) ) { selector = until; } @@ -4912,7 +4912,7 @@ jQuery.fn[ "parentsUntil" ] = function( until, selector ) { } var ret = jQuery.map( this, fn, until ); - + if ( !runtil.test( "parentsUntil" ) ) { selector = until; } @@ -4946,7 +4946,7 @@ jQuery.fn[ "nextUntil" ] = function( until, selector ) { } var ret = jQuery.map( this, fn, until ); - + if ( !runtil.test( "nextUntil" ) ) { selector = until; } @@ -4980,7 +4980,7 @@ jQuery.fn[ "prevUntil" ] = function( until, selector ) { } var ret = jQuery.map( this, fn, until ); - + if ( !runtil.test( "prevUntil" ) ) { selector = until; } @@ -5006,7 +5006,7 @@ jQuery.extend({ return jQuery.find.matches(expr, elems); }, - + dir: function( elem, dir, until ) { /// /// This member is internal only. @@ -5297,7 +5297,7 @@ jQuery.fn.extend({ clone: function( events ) { /// - /// Clone matched DOM Elements and select the clones. + /// Clone matched DOM Elements and select the clones. /// This is useful for moving copies of the elements to another /// location in the DOM. /// Part of DOM/Manipulation @@ -5838,7 +5838,7 @@ jQuery.extend({ return ret; }, - + cleanData: function( elems ) { for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) { jQuery.event.remove( elem ); @@ -5886,7 +5886,7 @@ jQuery.fn.css = function( name, value ) { if ( value === undefined ) { return jQuery.curCSS( elem, name ); } - + if ( typeof value === "number" && !rexclude.test(name) ) { value += "px"; } @@ -6430,7 +6430,7 @@ jQuery.extend({ /// var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); - + var jsonp, status, data, callbackContext = origSettings && origSettings.context || s, type = s.type.toUpperCase(); @@ -6745,7 +6745,7 @@ jQuery.extend({ jQuery.event.trigger( "ajaxStop" ); } } - + function trigger(type, args) { (s.context ? jQuery(s.context) : jQuery.event).trigger(type, args); } @@ -6865,19 +6865,19 @@ jQuery.extend({ /// var s = []; - + // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings.traditional; } - + // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray(a) || a.jquery ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); - + } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. @@ -6907,13 +6907,13 @@ jQuery.extend({ buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v ); } }); - + } else if ( !traditional && obj != null && typeof obj === "object" ) { // Serialize object item. jQuery.each( obj, function( k, v ) { buildParams( prefix + "[" + k + "]", v ); }); - + } else { // Serialize scalar item. add( prefix, obj ); @@ -7513,12 +7513,12 @@ jQuery.extend( jQuery.fx, { jQuery.fx.stop(); } }, - + stop: function() { clearInterval( timerId ); timerId = null; }, - + speeds: { slow: 600, fast: 200, @@ -7572,7 +7572,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { var elem = this[0]; - if ( options ) { + if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); @@ -7608,7 +7608,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { var elem = this[0]; - if ( options ) { + if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); @@ -7716,7 +7716,7 @@ jQuery.offset = { return { top: top, left: left }; }, - + setOffset: function( elem, options, i ) { // set position first, in-case top/left are set even on static elem if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) { @@ -7735,7 +7735,7 @@ jQuery.offset = { top: (options.top - curOffset.top) + curTop, left: (options.left - curOffset.left) + curLeft }; - + if ( "using" in options ) { options.using.call( elem, props ); } else { @@ -7811,7 +7811,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) { /// The scroll left offset of the first matched element. var elem = this[0], win; - + if ( !elem ) { return null; } @@ -7855,7 +7855,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) { /// The scroll top offset of the first matched element. var elem = this[0], win; - + if ( !elem ) { return null; } @@ -7942,7 +7942,7 @@ jQuery.each([ "Height" ], function( i, name ) { if ( !elem ) { return size == null ? null : this; } - + if ( jQuery.isFunction( size ) ) { return this.each(function( i ) { var self = jQuery( this ); @@ -8022,7 +8022,7 @@ jQuery.each([ "Width" ], function( i, name ) { if ( !elem ) { return size == null ? null : this; } - + if ( jQuery.isFunction( size ) ) { return this.each(function( i ) { var self = jQuery( this ); diff --git a/CQRSGui/Scripts/jquery-1.4.1.js b/CQRSGui/Scripts/jquery-1.4.1.js index b5c779c..2b2f58f 100644 --- a/CQRSGui/Scripts/jquery-1.4.1.js +++ b/CQRSGui/Scripts/jquery-1.4.1.js @@ -15,10 +15,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -69,10 +69,10 @@ var jQuery = function( selector, context ) { // For matching the engine and version of the browser browserMatch, - + // Has the ready events already been bound? readyBound = false, - + // The functions to execute on DOM ready readyList = [], @@ -254,7 +254,7 @@ jQuery.fn = jQuery.prototype = { each: function( callback, args ) { return jQuery.each( this, callback, args ); }, - + ready: function( fn ) { // Attach the listeners jQuery.bindReady(); @@ -272,7 +272,7 @@ jQuery.fn = jQuery.prototype = { return this; }, - + eq: function( i ) { return i === -1 ? this.slice( i ) : @@ -297,7 +297,7 @@ jQuery.fn = jQuery.prototype = { return callback.call( elem, i, elem ); })); }, - + end: function() { return this.prevObject || jQuery(null); }, @@ -378,10 +378,10 @@ jQuery.extend({ return jQuery; }, - + // Is the DOM ready to be used? Set to true once it occurs. isReady: false, - + // Handle when the DOM is ready ready: function() { // Make sure that the DOM is not already loaded @@ -412,7 +412,7 @@ jQuery.extend({ } } }, - + bindReady: function() { if ( readyBound ) { return; @@ -430,7 +430,7 @@ jQuery.extend({ if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); - + // A fallback to window.onload, that will always work window.addEventListener( "load", jQuery.ready, false ); @@ -439,7 +439,7 @@ jQuery.extend({ // ensure firing before onload, // maybe late but safe also for iframes document.attachEvent("onreadystatechange", DOMContentLoaded); - + // A fallback to window.onload, that will always work window.attachEvent( "onload", jQuery.ready ); @@ -475,20 +475,20 @@ jQuery.extend({ if ( !obj || toString.call(obj) !== "[object Object]" || obj.nodeType || obj.setInterval ) { return false; } - + // Not own constructor property must be Object if ( obj.constructor && !hasOwnProperty.call(obj, "constructor") && !hasOwnProperty.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } - + // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. - + var key; for ( key in obj ) {} - + return key === undefined || hasOwnProperty.call( obj, key ); }, @@ -498,16 +498,16 @@ jQuery.extend({ } return true; }, - + error: function( msg ) { throw msg; }, - + parseJSON: function( data ) { if ( typeof data !== "string" || !data ) { return null; } - + // Make sure the incoming data is actual JSON // Logic borrowed from http://json.org/json2.js if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@") @@ -800,7 +800,7 @@ function evalScript( i, elem ) { // The value/s can be optionally by executed if its a function function access( elems, key, value, exec, fn, pass ) { var length = elems.length; - + // Setting many attributes if ( typeof key === "object" ) { for ( var k in key ) { @@ -808,19 +808,19 @@ function access( elems, key, value, exec, fn, pass ) { } return elems; } - + // Setting one attribute if ( value !== undefined ) { // Optionally, function values get executed if exec is true exec = !pass && exec && jQuery.isFunction(value); - + for ( var i = 0; i < length; i++ ) { fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); } - + return elems; } - + // Getting an attribute return length ? fn( elems[0], key ) : null; } @@ -943,20 +943,20 @@ function now() { // Technique from Juriy Zaytsev // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ - var eventSupported = function( eventName ) { - var el = document.createElement("div"); - eventName = "on" + eventName; - - var isSupported = (eventName in el); - if ( !isSupported ) { - el.setAttribute(eventName, "return;"); - isSupported = typeof el[eventName] === "function"; - } - el = null; - - return isSupported; + var eventSupported = function( eventName ) { + var el = document.createElement("div"); + eventName = "on" + eventName; + + var isSupported = (eventName in el); + if ( !isSupported ) { + el.setAttribute(eventName, "return;"); + isSupported = typeof el[eventName] === "function"; + } + el = null; + + return isSupported; }; - + jQuery.support.submitBubbles = eventSupported("submit"); jQuery.support.changeBubbles = eventSupported("change"); @@ -981,7 +981,7 @@ var emptyObject = {}; jQuery.extend({ cache: {}, - + expando:expando, // The following elements throw uncatchable exceptions if you @@ -1009,7 +1009,7 @@ jQuery.extend({ } // Compute a unique ID for the element - if ( !id ) { + if ( !id ) { id = ++uuid; } @@ -1383,7 +1383,7 @@ jQuery.fn.extend({ if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) { return elem.getAttribute("value") === null ? "on" : elem.value; } - + // Everything else, we just grab the value return (elem.value || "").replace(rreturn, ""); @@ -1444,7 +1444,7 @@ jQuery.extend({ height: true, offset: true }, - + attr: function( elem, name, value, pass ) { // don't set attributes on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) { @@ -1473,7 +1473,7 @@ jQuery.extend({ var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; - + // Make sure that it also works with optgroups, see #5701 if ( parent.parentNode ) { parent.parentNode.selectedIndex; @@ -1650,17 +1650,17 @@ jQuery.event = { } } } - - if ( special.add ) { - var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); - if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { - modifiedHandler.guid = modifiedHandler.guid || handler.guid; - modifiedHandler.data = modifiedHandler.data || handler.data; - modifiedHandler.type = modifiedHandler.type || handler.type; - handler = modifiedHandler; - } - } - + + if ( special.add ) { + var modifiedHandler = special.add.call( elem, handler, data, namespaces, handlers ); + if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) { + modifiedHandler.guid = modifiedHandler.guid || handler.guid; + modifiedHandler.data = modifiedHandler.data || handler.data; + modifiedHandler.type = modifiedHandler.type || handler.type; + handler = modifiedHandler; + } + } + // Add the function to the element's handler list handlers[ handler.guid ] = handler; @@ -1991,11 +1991,11 @@ jQuery.event = { add: function( proxy, data, namespaces, live ) { jQuery.extend( proxy, data || {} ); - proxy.guid += data.selector + data.live; + proxy.guid += data.selector + data.live; data.liveProxy = proxy; - jQuery.event.add( this, data.live, liveHandler, data ); - + jQuery.event.add( this, data.live, liveHandler, data ); + }, remove: function( namespaces ) { @@ -2073,7 +2073,7 @@ jQuery.Event.prototype = { if ( !e ) { return; } - + // if preventDefault exists run it on the original event if ( e.preventDefault ) { e.preventDefault(); @@ -2168,7 +2168,7 @@ jQuery.event.special.submit = { return trigger( "submit", this, arguments ); } }); - + jQuery.event.add(this, "keypress.specialSubmit." + fn.guid, function( e ) { var elem = e.target, type = elem.type; @@ -2229,7 +2229,7 @@ function testChange( e ) { if ( e.type !== "focusout" || elem.type !== "radio" ) { jQuery.data( elem, "_change_data", val ); } - + if ( data === undefined || val === data ) { return; } @@ -2242,7 +2242,7 @@ function testChange( e ) { jQuery.event.special.change = { filters: { - focusout: testChange, + focusout: testChange, click: function( e ) { var elem = e.target, type = elem.type; @@ -2306,13 +2306,13 @@ if ( document.addEventListener ) { jQuery.event.special[ fix ] = { setup: function() { this.addEventListener( orig, handler, true ); - }, - teardown: function() { + }, + teardown: function() { this.removeEventListener( orig, handler, true ); } }; - function handler( e ) { + function handler( e ) { e = jQuery.event.fix( e ); e.type = fix; return jQuery.event.handle.call( this, e ); @@ -2329,7 +2329,7 @@ jQuery.each(["bind", "one"], function( i, name ) { } return this; } - + if ( jQuery.isFunction( data ) ) { fn = data; data = undefined; @@ -2421,7 +2421,7 @@ jQuery.each(["live", "die"], function( i, name ) { type === "blur" ? "focusout" : // blur --> focusout type === "hover" ? types.push("mouseleave") && "mouseenter" : // hover support type; - + if ( name === "live" ) { // bind live handler jQuery( this.context ).bind( liveConvert( type, this.selector ), { @@ -2433,7 +2433,7 @@ jQuery.each(["live", "die"], function( i, name ) { jQuery( this.context ).unbind( liveConvert( type, this.selector ), fn ? { guid: fn.guid + this.selector + type } : null ); } } - + return this; } }); @@ -2454,7 +2454,7 @@ function liveHandler( event ) { fn.altLive && jQuery.inArray(event.type, fn.altLive) > -1 ) { data = fn.data; - if ( !(data.beforeFilter && data.beforeFilter[event.type] && + if ( !(data.beforeFilter && data.beforeFilter[event.type] && !data.beforeFilter[event.type](event)) ) { selectors.push( fn.selector ); } @@ -2543,10 +2543,10 @@ if ( window.attachEvent && !window.addEventListener ) { * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -2579,20 +2579,20 @@ var Sizzle = function(selector, context, results, seed) { if ( context.nodeType !== 1 && context.nodeType !== 9 ) { return []; } - + if ( !selector || typeof selector !== "string" ) { return results; } var parts = [], m, set, checkSet, extra, prune = true, contextXML = isXML(context), soFar = selector; - + // Reset the position of the chunker regexp (start from head) while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) { soFar = m[3]; - + parts.push( m[1] ); - + if ( m[2] ) { extra = m[3]; break; @@ -2613,7 +2613,7 @@ var Sizzle = function(selector, context, results, seed) { if ( Expr.relative[ selector ] ) { selector += parts.shift(); } - + set = posProcess( selector, set ); } } @@ -2724,7 +2724,7 @@ Sizzle.find = function(expr, context, isXML){ for ( var i = 0, l = Expr.order.length; i < l; i++ ) { var type = Expr.order[i], match; - + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { var left = match[1]; match.splice(1,1); @@ -2998,7 +2998,7 @@ var Expr = Sizzle.selectors = { }, ATTR: function(match, curLoop, inplace, result, not, isXML){ var name = match[1].replace(/\\/g, ""); - + if ( !isXML && Expr.attrMap[name] ) { match[1] = Expr.attrMap[name]; } @@ -3024,7 +3024,7 @@ var Expr = Sizzle.selectors = { } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { return true; } - + return match; }, POS: function(match){ @@ -3145,18 +3145,18 @@ var Expr = Sizzle.selectors = { case 'only': case 'first': while ( (node = node.previousSibling) ) { - if ( node.nodeType === 1 ) { - return false; + if ( node.nodeType === 1 ) { + return false; } } - if ( type === "first" ) { - return true; + if ( type === "first" ) { + return true; } node = elem; case 'last': while ( (node = node.nextSibling) ) { - if ( node.nodeType === 1 ) { - return false; + if ( node.nodeType === 1 ) { + return false; } } return true; @@ -3166,20 +3166,20 @@ var Expr = Sizzle.selectors = { if ( first === 1 && last === 0 ) { return true; } - + var doneName = match[0], parent = elem.parentNode; - + if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { var count = 0; for ( node = parent.firstChild; node; node = node.nextSibling ) { if ( node.nodeType === 1 ) { node.nodeIndex = ++count; } - } + } parent.sizcache = doneName; } - + var diff = elem.nodeIndex - last; if ( first === 0 ) { return diff === 0; @@ -3255,7 +3255,7 @@ var makeArray = function(array, results) { results.push.apply( results, array ); return results; } - + return array; }; @@ -3445,7 +3445,7 @@ if ( document.querySelectorAll ) { if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { return; } - + Sizzle = function(query, context, extra, seed){ context = context || document; @@ -3456,7 +3456,7 @@ if ( document.querySelectorAll ) { return makeArray( context.querySelectorAll(query), extra ); } catch(e){} } - + return oldSizzle(query, context, extra, seed); }; @@ -3485,7 +3485,7 @@ if ( document.querySelectorAll ) { if ( div.getElementsByClassName("e").length === 1 ) { return; } - + Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS = function(match, context, isXML) { if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { @@ -3573,7 +3573,7 @@ var contains = document.compareDocumentPosition ? function(a, b){ var isXML = function(elem){ // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) + // (such as loading iframes in IE - #4833) var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; @@ -3689,7 +3689,7 @@ jQuery.fn.extend({ filter: function( selector ) { return this.pushStack( winnow(this, selector, true), "filter", selector ); }, - + is: function( selector ) { return !!selector && jQuery.filter( selector, this ).length > 0; }, @@ -3703,7 +3703,7 @@ jQuery.fn.extend({ selector = selectors[i]; if ( !matches[selector] ) { - matches[selector] = jQuery.expr.match.POS.test( selector ) ? + matches[selector] = jQuery.expr.match.POS.test( selector ) ? jQuery( selector, context || this.context ) : selector; } @@ -3725,7 +3725,7 @@ jQuery.fn.extend({ return ret; } - var pos = jQuery.expr.match.POS.test( selectors ) ? + var pos = jQuery.expr.match.POS.test( selectors ) ? jQuery( selectors, context || this.context ) : null; return this.map(function( i, cur ) { @@ -3738,7 +3738,7 @@ jQuery.fn.extend({ return null; }); }, - + // Determine the position of an element within // the matched set of elements index: function( elem ) { @@ -3819,7 +3819,7 @@ jQuery.each({ }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); - + if ( !runtil.test( name ) ) { selector = until; } @@ -3846,7 +3846,7 @@ jQuery.extend({ return jQuery.find.matches(expr, elems); }, - + dir: function( elem, dir, until ) { var matched = [], cur = elem[dir]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { @@ -4402,7 +4402,7 @@ jQuery.extend({ return ret; }, - + cleanData: function( elems ) { for ( var i = 0, elem, id; (elem = elems[i]) != null; i++ ) { jQuery.event.remove( elem ); @@ -4437,7 +4437,7 @@ jQuery.fn.css = function( name, value ) { if ( value === undefined ) { return jQuery.curCSS( elem, name ); } - + if ( typeof value === "number" && !rexclude.test(name) ) { value += "px"; } @@ -4845,7 +4845,7 @@ jQuery.extend({ ajax: function( origSettings ) { var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); - + var jsonp, status, data, callbackContext = origSettings && origSettings.context || s, type = s.type.toUpperCase(); @@ -5160,7 +5160,7 @@ jQuery.extend({ jQuery.event.trigger( "ajaxStop" ); } } - + function trigger(type, args) { (s.context ? jQuery(s.context) : jQuery.event).trigger(type, args); } @@ -5248,19 +5248,19 @@ jQuery.extend({ // key/values into a query string param: function( a, traditional ) { var s = []; - + // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings.traditional; } - + // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray(a) || a.jquery ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); - + } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. @@ -5290,13 +5290,13 @@ jQuery.extend({ buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v ); } }); - + } else if ( !traditional && obj != null && typeof obj === "object" ) { // Serialize object item. jQuery.each( obj, function( k, v ) { buildParams( prefix + "[" + k + "]", v ); }); - + } else { // Serialize scalar item. add( prefix, obj ); @@ -5747,12 +5747,12 @@ jQuery.extend( jQuery.fx, { jQuery.fx.stop(); } }, - + stop: function() { clearInterval( timerId ); timerId = null; }, - + speeds: { slow: 600, fast: 200, @@ -5796,7 +5796,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { jQuery.fn.offset = function( options ) { var elem = this[0]; - if ( options ) { + if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); @@ -5822,7 +5822,7 @@ if ( "getBoundingClientRect" in document.documentElement ) { jQuery.fn.offset = function( options ) { var elem = this[0]; - if ( options ) { + if ( options ) { return this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); @@ -5930,7 +5930,7 @@ jQuery.offset = { return { top: top, left: left }; }, - + setOffset: function( elem, options, i ) { // set position first, in-case top/left are set even on static elem if ( /static/.test( jQuery.curCSS( elem, "position" ) ) ) { @@ -5949,7 +5949,7 @@ jQuery.offset = { top: (options.top - curOffset.top) + curTop, left: (options.left - curOffset.left) + curLeft }; - + if ( "using" in options ) { options.using.call( elem, props ); } else { @@ -6009,7 +6009,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) { jQuery.fn[ method ] = function(val) { var elem = this[0], win; - + if ( !elem ) { return null; } @@ -6073,7 +6073,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) { if ( !elem ) { return size == null ? null : this; } - + if ( jQuery.isFunction( size ) ) { return this.each(function( i ) { var self = jQuery( this ); diff --git a/CQRSGui/Scripts/jquery-1.4.1.min.js b/CQRSGui/Scripts/jquery-1.4.1.min.js index 15b830c..6f3e983 100644 --- a/CQRSGui/Scripts/jquery-1.4.1.min.js +++ b/CQRSGui/Scripts/jquery-1.4.1.min.js @@ -6,7 +6,7 @@ * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation - * + * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including diff --git a/CQRSGui/Scripts/jquery.validate-vsdoc.js b/CQRSGui/Scripts/jquery.validate-vsdoc.js index 9fc0981..4d76b48 100644 --- a/CQRSGui/Scripts/jquery.validate-vsdoc.js +++ b/CQRSGui/Scripts/jquery.validate-vsdoc.js @@ -64,30 +64,30 @@ $.extend($.fn, { if ( validator ) { return validator; } - + validator = new $.validator( options, this[0] ); - $.data(this[0], 'validator', validator); - + $.data(this[0], 'validator', validator); + if ( validator.settings.onsubmit ) { - + // allow suppresing validation by adding a cancel class to the submit button this.find("input, button").filter(".cancel").click(function() { validator.cancelSubmit = true; }); - + // when a submitHandler is used, capture the submitting button if (validator.settings.submitHandler) { this.find("input, button").filter(":submit").click(function() { validator.submitButton = this; }); } - + // validate the form on submit this.submit( function( event ) { if ( validator.settings.debug ) // prevent form submit to be able to see console output event.preventDefault(); - + function handle() { if ( validator.settings.submitHandler ) { if (validator.submitButton) { @@ -103,7 +103,7 @@ $.extend($.fn, { } return true; } - + // prevent submit for invalid forms or custom submit handlers if ( validator.cancelSubmit ) { validator.cancelSubmit = false; @@ -121,7 +121,7 @@ $.extend($.fn, { } }); } - + return validator; }, // http://docs.jquery.com/Plugins/Validation/valid @@ -175,7 +175,7 @@ $.extend($.fn, { /// var element = this[0]; - + if (command) { var settings = $.data(element.form, 'validator').settings; var staticRules = settings.rules; @@ -200,7 +200,7 @@ $.extend($.fn, { return filtered; } } - + var data = $.validator.normalizeRules( $.extend( {}, @@ -209,14 +209,14 @@ $.extend($.fn, { $.validator.attributeRules(element), $.validator.staticRules(element) ), element); - + // make sure required is at front if (data.required) { var param = data.required; delete data.required; data = $.extend({required: param}, data); } - + return data; } }); @@ -252,7 +252,7 @@ $.validator.format = function(source, params) { /// /// - if ( arguments.length == 1 ) + if ( arguments.length == 1 ) return function() { var args = $.makeArray(arguments); args.unshift(source); @@ -271,7 +271,7 @@ $.validator.format = function(source, params) { }; $.extend($.validator, { - + defaults: { messages: {}, groups: {}, @@ -287,7 +287,7 @@ $.extend($.validator, { ignoreTitle: false, onfocusin: function(element) { this.lastActive = element; - + // hide error label and remove error class on focus if enabled if ( this.settings.focusCleanup && !this.blockFocusCleanup ) { this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); @@ -353,11 +353,11 @@ $.extend($.validator, { max: $.validator.format("Please enter a value less than or equal to {0}."), min: $.validator.format("Please enter a value greater than or equal to {0}.") }, - + autoCreateRanges: false, - + prototype: { - + init: function() { this.labelContainer = $(this.settings.errorLabelContainer); this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); @@ -368,7 +368,7 @@ $.extend($.validator, { this.pending = {}; this.invalid = {}; this.reset(); - + var groups = (this.groups = {}); $.each(this.settings.groups, function(key, value) { $.each(value.split(/\s/), function(index, name) { @@ -379,7 +379,7 @@ $.extend($.validator, { $.each(rules, function(key, value) { rules[key] = $.validator.normalizeRule(value); }); - + function delegate(event) { var validator = $.data(this[0].form, "validator"); validator.settings["on" + event.type] && validator.settings["on" + event.type].call(validator, this[0] ); @@ -408,15 +408,15 @@ $.extend($.validator, { this.showErrors(); return this.valid(); }, - + checkForm: function() { this.prepareForm(); for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) { this.check( elements[i] ); } - return this.valid(); + return this.valid(); }, - + // http://docs.jquery.com/Plugins/Validation/Validator/element element: function( element ) { /// @@ -476,7 +476,7 @@ $.extend($.validator, { ? this.settings.showErrors.call( this, this.errorMap, this.errorList ) : this.defaultShowErrors(); }, - + // http://docs.jquery.com/Plugins/Validation/Validator/resetForm resetForm: function() { /// @@ -493,7 +493,7 @@ $.extend($.validator, { this.hideErrors(); this.elements().removeClass( this.settings.errorClass ); }, - + numberOfInvalids: function() { /// /// Returns the number of invalid fields. @@ -506,26 +506,26 @@ $.extend($.validator, { return this.objectLength(this.invalid); }, - + objectLength: function( obj ) { var count = 0; for ( var i in obj ) count++; return count; }, - + hideErrors: function() { this.addWrapper( this.toHide ).hide(); }, - + valid: function() { return this.size() == 0; }, - + size: function() { return this.errorList.length; }, - + focusInvalid: function() { if( this.settings.focusInvalid ) { try { @@ -535,18 +535,18 @@ $.extend($.validator, { } } }, - + findLastActive: function() { var lastActive = this.lastActive; return lastActive && $.grep(this.errorList, function(n) { return n.element.name == lastActive.name; }).length == 1 && lastActive; }, - + elements: function() { var validator = this, rulesCache = {}; - + // select all valid inputs inside the form (no submit or reset buttons) // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved return $([]).add(this.currentForm.elements) @@ -555,24 +555,24 @@ $.extend($.validator, { .not( this.settings.ignore ) .filter(function() { !this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this); - + // select only the first element for each name, and only those with rules specified if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) return false; - + rulesCache[this.name] = true; return true; }); }, - + clean: function( selector ) { return $( selector )[0]; }, - + errors: function() { return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext ); }, - + reset: function() { this.successList = []; this.errorList = []; @@ -581,32 +581,32 @@ $.extend($.validator, { this.toHide = $([]); this.currentElements = $([]); }, - + prepareForm: function() { this.reset(); this.toHide = this.errors().add( this.containers ); }, - + prepareElement: function( element ) { this.reset(); this.toHide = this.errorsFor(element); }, - + check: function( element ) { element = this.clean( element ); - + // if radio/checkbox, validate first element in group instead if (this.checkable(element)) { element = this.findByName( element.name )[0]; } - + var rules = $(element).rules(); var dependencyMismatch = false; for( method in rules ) { var rule = { method: method, parameters: rules[method] }; try { var result = $.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters ); - + // if a method indicates that the field is optional and therefore valid, // don't mark it as valid when there are no other rules if ( result == "dependency-mismatch" ) { @@ -614,12 +614,12 @@ $.extend($.validator, { continue; } dependencyMismatch = false; - + if ( result == "pending" ) { this.toHide = this.toHide.not( this.errorsFor(element) ); return; } - + if( !result ) { this.formatAndAdd( element, rule ); return false; @@ -636,20 +636,20 @@ $.extend($.validator, { this.successList.push(element); return true; }, - + // return the custom message for the given element and validation method // specified in the element's "messages" metadata customMetaMessage: function(element, method) { if (!$.metadata) return; - + var meta = this.settings.meta ? $(element).metadata()[this.settings.meta] : $(element).metadata(); - + return meta && meta.messages && meta.messages[method]; }, - + // return the custom message for the given element name and validation method customMessage: function( name, method ) { var m = this.settings.messages[name]; @@ -657,7 +657,7 @@ $.extend($.validator, { ? m : m[method]); }, - + // return the first defined argument, allowing empty strings findDefined: function() { for(var i = 0; i < arguments.length; i++) { @@ -666,7 +666,7 @@ $.extend($.validator, { } return undefined; }, - + defaultMessage: function( element, method) { return this.findDefined( this.customMessage( element.name, method ), @@ -677,7 +677,7 @@ $.extend($.validator, { "Warning: No message defined for " + element.name + "" ); }, - + formatAndAdd: function( element, rule ) { var message = this.defaultMessage( element, rule.method ), theregex = /\$?\{(\d+)\}/g; @@ -685,22 +685,22 @@ $.extend($.validator, { message = message.call(this, rule.parameters, element); } else if (theregex.test(message)) { message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters); - } + } this.errorList.push({ message: message, element: element }); - + this.errorMap[element.name] = message; this.submitted[element.name] = message; }, - + addWrapper: function(toToggle) { if ( this.settings.wrapper ) toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); return toToggle; }, - + defaultShowErrors: function() { for ( var i = 0; this.errorList[i]; i++ ) { var error = this.errorList[i]; @@ -724,23 +724,23 @@ $.extend($.validator, { this.hideErrors(); this.addWrapper( this.toShow ).show(); }, - + validElements: function() { return this.currentElements.not(this.invalidElements()); }, - + invalidElements: function() { return $(this.errorList).map(function() { return this.element; }); }, - + showLabel: function(element, message) { var label = this.errorsFor( element ); if ( label.length ) { // refresh error/success class label.removeClass().addClass( this.settings.errorClass ); - + // check if we have a generated label, replace the message then label.attr("generated") && label.html(message); } else { @@ -767,14 +767,14 @@ $.extend($.validator, { } this.toShow = this.toShow.add(label); }, - + errorsFor: function(element) { var name = this.idOrName(element); return this.errors().filter(function() { return $(this).attr('for') == name }); }, - + idOrName: function(element) { return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name); }, @@ -782,7 +782,7 @@ $.extend($.validator, { checkable: function( element ) { return /radio|checkbox/i.test(element.type); }, - + findByName: function( name ) { // select by name and filter by form for performance over form.find("[name=...]") var form = this.currentForm; @@ -790,7 +790,7 @@ $.extend($.validator, { return element.form == form && element.name == name && element || null; }); }, - + getLength: function(value, element) { switch( element.nodeName.toLowerCase() ) { case 'select': @@ -801,13 +801,13 @@ $.extend($.validator, { } return value.length; }, - + depend: function(param, element) { return this.dependTypes[typeof param] ? this.dependTypes[typeof param](param, element) : true; }, - + dependTypes: { "boolean": function(param, element) { return param; @@ -819,18 +819,18 @@ $.extend($.validator, { return param(element); } }, - + optional: function(element) { return !$.validator.methods.required.call(this, $.trim(element.value), element) && "dependency-mismatch"; }, - + startRequest: function(element) { if (!this.pending[element.name]) { this.pendingRequest++; this.pending[element.name] = true; } }, - + stopRequest: function(element, valid) { this.pendingRequest--; // sometimes synchronization fails, make sure pendingRequest is never < 0 @@ -845,7 +845,7 @@ $.extend($.validator, { this.formSubmitted = false; } }, - + previousValue: function(element) { return $.data(element, "previousValue") || $.data(element, "previousValue", { old: null, @@ -853,9 +853,9 @@ $.extend($.validator, { message: this.defaultMessage( element, "remote" ) }); } - + }, - + classRuleSettings: { required: {required: true}, email: {email: true}, @@ -868,7 +868,7 @@ $.extend($.validator, { digits: {digits: true}, creditcard: {creditcard: true} }, - + // http://docs.jquery.com/Plugins/Validation/Validator/addClassRules#namerules addClassRules: function(className, rules) { /// @@ -887,7 +887,7 @@ $.extend($.validator, { this.classRuleSettings[className] = rules : $.extend(this.classRuleSettings, className); }, - + classRules: function(element) { var rules = {}; var classes = $(element).attr('class'); @@ -898,35 +898,35 @@ $.extend($.validator, { }); return rules; }, - + attributeRules: function(element) { var rules = {}; var $element = $(element); - + for (method in $.validator.methods) { var value = $element.attr(method); if (value) { rules[method] = value; } } - + // maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { delete rules.maxlength; } - + return rules; }, - + metadataRules: function(element) { if (!$.metadata) return {}; - + var meta = $.data(element.form, 'validator').settings.meta; return meta ? $(element).metadata()[meta] : $(element).metadata(); }, - + staticRules: function(element) { var rules = {}; var validator = $.data(element.form, 'validator'); @@ -935,7 +935,7 @@ $.extend($.validator, { } return rules; }, - + normalizeRules: function(rules, element) { // handle dependency check $.each(rules, function(prop, val) { @@ -961,12 +961,12 @@ $.extend($.validator, { } } }); - + // evaluate parameters $.each(rules, function(rule, parameter) { rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter; }); - + // clean number parameters $.each(['minlength', 'maxlength', 'min', 'max'], function() { if (rules[this]) { @@ -978,7 +978,7 @@ $.extend($.validator, { rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; } }); - + if ($.validator.autoCreateRanges) { // auto-create ranges if (rules.min && rules.max) { @@ -992,15 +992,15 @@ $.extend($.validator, { delete rules.maxlength; } } - + // To support custom messages in metadata ignore rule methods titled "messages" if (rules.messages) { delete rules.messages } - + return rules; }, - + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} normalizeRule: function(data) { if( typeof data == "string" ) { @@ -1012,11 +1012,11 @@ $.extend($.validator, { } return data; }, - + // http://docs.jquery.com/Plugins/Validation/Validator/addMethod addMethod: function(name, method, message) { /// - /// Add a custom validation method. It must consist of a name (must be a legal javascript + /// Add a custom validation method. It must consist of a name (must be a legal javascript /// identifier), a javascript based function and a default string message. /// /// @@ -1027,8 +1027,8 @@ $.extend($.validator, { /// The actual method implementation, returning true if an element is valid /// /// - /// (Optional) The default message to display for this method. Can be a function created by - /// jQuery.validator.format(value). When undefined, an already existing message is used + /// (Optional) The default message to display for this method. Can be a function created by + /// jQuery.validator.format(value). When undefined, an already existing message is used /// (handy for localization), otherwise the field-specific messages have to be defined. /// /// @@ -1059,20 +1059,20 @@ $.extend($.validator, { return $.trim(value).length > 0; } }, - + // http://docs.jquery.com/Plugins/Validation/Methods/remote remote: function(value, element, param) { if ( this.optional(element) ) return "dependency-mismatch"; - + var previous = this.previousValue(element); if (!this.settings.messages[element.name] ) this.settings.messages[element.name] = {}; previous.originalMessage = this.settings.messages[element.name].remote; this.settings.messages[element.name].remote = previous.message; - - param = typeof param == "string" && {url:param} || param; - + + param = typeof param == "string" && {url:param} || param; + if ( previous.old !== value ) { previous.old = value; var validator = this; @@ -1115,65 +1115,65 @@ $.extend($.validator, { minlength: function(value, element, param) { return this.optional(element) || this.getLength($.trim(value), element) >= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/maxlength maxlength: function(value, element, param) { return this.optional(element) || this.getLength($.trim(value), element) <= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/rangelength rangelength: function(value, element, param) { var length = this.getLength($.trim(value), element); return this.optional(element) || ( length >= param[0] && length <= param[1] ); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/min min: function( value, element, param ) { return this.optional(element) || value >= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/max max: function( value, element, param ) { return this.optional(element) || value <= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/range range: function( value, element, param ) { return this.optional(element) || ( value >= param[0] && value <= param[1] ); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/email email: function(value, element) { // contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/ return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/url url: function(value, element) { // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/date date: function(value, element) { return this.optional(element) || !/Invalid|NaN/.test(new Date(value)); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/dateISO dateISO: function(value, element) { return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/number number: function(value, element) { return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/digits digits: function(value, element) { return this.optional(element) || /^\d+$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/creditcard // based on http://en.wikipedia.org/wiki/Luhn creditcard: function(value, element) { @@ -1201,13 +1201,13 @@ $.extend($.validator, { return (nCheck % 10) == 0; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/accept accept: function(value, element, param) { param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; - return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); + return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/equalTo equalTo: function(value, element, param) { // bind to the blur event of the target in order to revalidate whenever the target field is updated @@ -1217,9 +1217,9 @@ $.extend($.validator, { }); return value == target.val(); } - + } - + }); // deprecated, use $.validator.format instead @@ -1229,7 +1229,7 @@ $.format = $.validator.format; // ajax mode: abort // usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); -// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() ;(function($) { var ajax = $.ajax; var pendingRequests = {}; @@ -1251,13 +1251,13 @@ $.format = $.validator.format; // IE has native support, in other browsers, use event caputuring (neither bubbles) // provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation -// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target +// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target // provides triggerEvent(type: String, target: Element) to trigger delegated events ;(function($) { $.each({ focus: 'focusin', - blur: 'focusout' + blur: 'focusout' }, function( original, fix ){ $.event.special[fix] = { setup:function() { diff --git a/CQRSGui/Scripts/jquery.validate.js b/CQRSGui/Scripts/jquery.validate.js index 132bc05..e4ac2ec 100644 --- a/CQRSGui/Scripts/jquery.validate.js +++ b/CQRSGui/Scripts/jquery.validate.js @@ -15,10 +15,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND @@ -45,30 +45,30 @@ $.extend($.fn, { if ( validator ) { return validator; } - + validator = new $.validator( options, this[0] ); - $.data(this[0], 'validator', validator); - + $.data(this[0], 'validator', validator); + if ( validator.settings.onsubmit ) { - + // allow suppresing validation by adding a cancel class to the submit button this.find("input, button").filter(".cancel").click(function() { validator.cancelSubmit = true; }); - + // when a submitHandler is used, capture the submitting button if (validator.settings.submitHandler) { this.find("input, button").filter(":submit").click(function() { validator.submitButton = this; }); } - + // validate the form on submit this.submit( function( event ) { if ( validator.settings.debug ) // prevent form submit to be able to see console output event.preventDefault(); - + function handle() { if ( validator.settings.submitHandler ) { if (validator.submitButton) { @@ -84,7 +84,7 @@ $.extend($.fn, { } return true; } - + // prevent submit for invalid forms or custom submit handlers if ( validator.cancelSubmit ) { validator.cancelSubmit = false; @@ -102,7 +102,7 @@ $.extend($.fn, { } }); } - + return validator; }, // http://docs.jquery.com/Plugins/Validation/valid @@ -131,7 +131,7 @@ $.extend($.fn, { // http://docs.jquery.com/Plugins/Validation/rules rules: function(command, argument) { var element = this[0]; - + if (command) { var settings = $.data(element.form, 'validator').settings; var staticRules = settings.rules; @@ -156,7 +156,7 @@ $.extend($.fn, { return filtered; } } - + var data = $.validator.normalizeRules( $.extend( {}, @@ -165,14 +165,14 @@ $.extend($.fn, { $.validator.attributeRules(element), $.validator.staticRules(element) ), element); - + // make sure required is at front if (data.required) { var param = data.required; delete data.required; data = $.extend({required: param}, data); } - + return data; } }); @@ -195,7 +195,7 @@ $.validator = function( options, form ) { }; $.validator.format = function(source, params) { - if ( arguments.length == 1 ) + if ( arguments.length == 1 ) return function() { var args = $.makeArray(arguments); args.unshift(source); @@ -214,7 +214,7 @@ $.validator.format = function(source, params) { }; $.extend($.validator, { - + defaults: { messages: {}, groups: {}, @@ -230,7 +230,7 @@ $.extend($.validator, { ignoreTitle: false, onfocusin: function(element) { this.lastActive = element; - + // hide error label and remove error class on focus if enabled if ( this.settings.focusCleanup && !this.blockFocusCleanup ) { this.settings.unhighlight && this.settings.unhighlight.call( this, element, this.settings.errorClass, this.settings.validClass ); @@ -287,11 +287,11 @@ $.extend($.validator, { max: $.validator.format("Please enter a value less than or equal to {0}."), min: $.validator.format("Please enter a value greater than or equal to {0}.") }, - + autoCreateRanges: false, - + prototype: { - + init: function() { this.labelContainer = $(this.settings.errorLabelContainer); this.errorContext = this.labelContainer.length && this.labelContainer || $(this.currentForm); @@ -302,7 +302,7 @@ $.extend($.validator, { this.pending = {}; this.invalid = {}; this.reset(); - + var groups = (this.groups = {}); $.each(this.settings.groups, function(key, value) { $.each(value.split(/\s/), function(index, name) { @@ -313,7 +313,7 @@ $.extend($.validator, { $.each(rules, function(key, value) { rules[key] = $.validator.normalizeRule(value); }); - + function delegate(event) { var validator = $.data(this[0].form, "validator"); validator.settings["on" + event.type] && validator.settings["on" + event.type].call(validator, this[0] ); @@ -336,15 +336,15 @@ $.extend($.validator, { this.showErrors(); return this.valid(); }, - + checkForm: function() { this.prepareForm(); for ( var i = 0, elements = (this.currentElements = this.elements()); elements[i]; i++ ) { this.check( elements[i] ); } - return this.valid(); + return this.valid(); }, - + // http://docs.jquery.com/Plugins/Validation/Validator/element element: function( element ) { element = this.clean( element ); @@ -386,7 +386,7 @@ $.extend($.validator, { ? this.settings.showErrors.call( this, this.errorMap, this.errorList ) : this.defaultShowErrors(); }, - + // http://docs.jquery.com/Plugins/Validation/Validator/resetForm resetForm: function() { if ( $.fn.resetForm ) @@ -396,30 +396,30 @@ $.extend($.validator, { this.hideErrors(); this.elements().removeClass( this.settings.errorClass ); }, - + numberOfInvalids: function() { return this.objectLength(this.invalid); }, - + objectLength: function( obj ) { var count = 0; for ( var i in obj ) count++; return count; }, - + hideErrors: function() { this.addWrapper( this.toHide ).hide(); }, - + valid: function() { return this.size() == 0; }, - + size: function() { return this.errorList.length; }, - + focusInvalid: function() { if( this.settings.focusInvalid ) { try { @@ -429,18 +429,18 @@ $.extend($.validator, { } } }, - + findLastActive: function() { var lastActive = this.lastActive; return lastActive && $.grep(this.errorList, function(n) { return n.element.name == lastActive.name; }).length == 1 && lastActive; }, - + elements: function() { var validator = this, rulesCache = {}; - + // select all valid inputs inside the form (no submit or reset buttons) // workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved return $([]).add(this.currentForm.elements) @@ -449,24 +449,24 @@ $.extend($.validator, { .not( this.settings.ignore ) .filter(function() { !this.name && validator.settings.debug && window.console && console.error( "%o has no name assigned", this); - + // select only the first element for each name, and only those with rules specified if ( this.name in rulesCache || !validator.objectLength($(this).rules()) ) return false; - + rulesCache[this.name] = true; return true; }); }, - + clean: function( selector ) { return $( selector )[0]; }, - + errors: function() { return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext ); }, - + reset: function() { this.successList = []; this.errorList = []; @@ -475,32 +475,32 @@ $.extend($.validator, { this.toHide = $([]); this.currentElements = $([]); }, - + prepareForm: function() { this.reset(); this.toHide = this.errors().add( this.containers ); }, - + prepareElement: function( element ) { this.reset(); this.toHide = this.errorsFor(element); }, - + check: function( element ) { element = this.clean( element ); - + // if radio/checkbox, validate first element in group instead if (this.checkable(element)) { element = this.findByName( element.name )[0]; } - + var rules = $(element).rules(); var dependencyMismatch = false; for( method in rules ) { var rule = { method: method, parameters: rules[method] }; try { var result = $.validator.methods[method].call( this, element.value.replace(/\r/g, ""), element, rule.parameters ); - + // if a method indicates that the field is optional and therefore valid, // don't mark it as valid when there are no other rules if ( result == "dependency-mismatch" ) { @@ -508,12 +508,12 @@ $.extend($.validator, { continue; } dependencyMismatch = false; - + if ( result == "pending" ) { this.toHide = this.toHide.not( this.errorsFor(element) ); return; } - + if( !result ) { this.formatAndAdd( element, rule ); return false; @@ -530,20 +530,20 @@ $.extend($.validator, { this.successList.push(element); return true; }, - + // return the custom message for the given element and validation method // specified in the element's "messages" metadata customMetaMessage: function(element, method) { if (!$.metadata) return; - + var meta = this.settings.meta ? $(element).metadata()[this.settings.meta] : $(element).metadata(); - + return meta && meta.messages && meta.messages[method]; }, - + // return the custom message for the given element name and validation method customMessage: function( name, method ) { var m = this.settings.messages[name]; @@ -551,7 +551,7 @@ $.extend($.validator, { ? m : m[method]); }, - + // return the first defined argument, allowing empty strings findDefined: function() { for(var i = 0; i < arguments.length; i++) { @@ -560,7 +560,7 @@ $.extend($.validator, { } return undefined; }, - + defaultMessage: function( element, method) { return this.findDefined( this.customMessage( element.name, method ), @@ -571,7 +571,7 @@ $.extend($.validator, { "Warning: No message defined for " + element.name + "" ); }, - + formatAndAdd: function( element, rule ) { var message = this.defaultMessage( element, rule.method ), theregex = /\$?\{(\d+)\}/g; @@ -579,22 +579,22 @@ $.extend($.validator, { message = message.call(this, rule.parameters, element); } else if (theregex.test(message)) { message = jQuery.format(message.replace(theregex, '{$1}'), rule.parameters); - } + } this.errorList.push({ message: message, element: element }); - + this.errorMap[element.name] = message; this.submitted[element.name] = message; }, - + addWrapper: function(toToggle) { if ( this.settings.wrapper ) toToggle = toToggle.add( toToggle.parent( this.settings.wrapper ) ); return toToggle; }, - + defaultShowErrors: function() { for ( var i = 0; this.errorList[i]; i++ ) { var error = this.errorList[i]; @@ -618,23 +618,23 @@ $.extend($.validator, { this.hideErrors(); this.addWrapper( this.toShow ).show(); }, - + validElements: function() { return this.currentElements.not(this.invalidElements()); }, - + invalidElements: function() { return $(this.errorList).map(function() { return this.element; }); }, - + showLabel: function(element, message) { var label = this.errorsFor( element ); if ( label.length ) { // refresh error/success class label.removeClass().addClass( this.settings.errorClass ); - + // check if we have a generated label, replace the message then label.attr("generated") && label.html(message); } else { @@ -661,14 +661,14 @@ $.extend($.validator, { } this.toShow = this.toShow.add(label); }, - + errorsFor: function(element) { var name = this.idOrName(element); return this.errors().filter(function() { return $(this).attr('for') == name }); }, - + idOrName: function(element) { return this.groups[element.name] || (this.checkable(element) ? element.name : element.id || element.name); }, @@ -676,7 +676,7 @@ $.extend($.validator, { checkable: function( element ) { return /radio|checkbox/i.test(element.type); }, - + findByName: function( name ) { // select by name and filter by form for performance over form.find("[name=...]") var form = this.currentForm; @@ -684,7 +684,7 @@ $.extend($.validator, { return element.form == form && element.name == name && element || null; }); }, - + getLength: function(value, element) { switch( element.nodeName.toLowerCase() ) { case 'select': @@ -695,13 +695,13 @@ $.extend($.validator, { } return value.length; }, - + depend: function(param, element) { return this.dependTypes[typeof param] ? this.dependTypes[typeof param](param, element) : true; }, - + dependTypes: { "boolean": function(param, element) { return param; @@ -713,18 +713,18 @@ $.extend($.validator, { return param(element); } }, - + optional: function(element) { return !$.validator.methods.required.call(this, $.trim(element.value), element) && "dependency-mismatch"; }, - + startRequest: function(element) { if (!this.pending[element.name]) { this.pendingRequest++; this.pending[element.name] = true; } }, - + stopRequest: function(element, valid) { this.pendingRequest--; // sometimes synchronization fails, make sure pendingRequest is never < 0 @@ -739,7 +739,7 @@ $.extend($.validator, { this.formSubmitted = false; } }, - + previousValue: function(element) { return $.data(element, "previousValue") || $.data(element, "previousValue", { old: null, @@ -747,9 +747,9 @@ $.extend($.validator, { message: this.defaultMessage( element, "remote" ) }); } - + }, - + classRuleSettings: { required: {required: true}, email: {email: true}, @@ -762,13 +762,13 @@ $.extend($.validator, { digits: {digits: true}, creditcard: {creditcard: true} }, - + addClassRules: function(className, rules) { className.constructor == String ? this.classRuleSettings[className] = rules : $.extend(this.classRuleSettings, className); }, - + classRules: function(element) { var rules = {}; var classes = $(element).attr('class'); @@ -779,35 +779,35 @@ $.extend($.validator, { }); return rules; }, - + attributeRules: function(element) { var rules = {}; var $element = $(element); - + for (method in $.validator.methods) { var value = $element.attr(method); if (value) { rules[method] = value; } } - + // maxlength may be returned as -1, 2147483647 (IE) and 524288 (safari) for text inputs if (rules.maxlength && /-1|2147483647|524288/.test(rules.maxlength)) { delete rules.maxlength; } - + return rules; }, - + metadataRules: function(element) { if (!$.metadata) return {}; - + var meta = $.data(element.form, 'validator').settings.meta; return meta ? $(element).metadata()[meta] : $(element).metadata(); }, - + staticRules: function(element) { var rules = {}; var validator = $.data(element.form, 'validator'); @@ -816,7 +816,7 @@ $.extend($.validator, { } return rules; }, - + normalizeRules: function(rules, element) { // handle dependency check $.each(rules, function(prop, val) { @@ -842,12 +842,12 @@ $.extend($.validator, { } } }); - + // evaluate parameters $.each(rules, function(rule, parameter) { rules[rule] = $.isFunction(parameter) ? parameter(element) : parameter; }); - + // clean number parameters $.each(['minlength', 'maxlength', 'min', 'max'], function() { if (rules[this]) { @@ -859,7 +859,7 @@ $.extend($.validator, { rules[this] = [Number(rules[this][0]), Number(rules[this][1])]; } }); - + if ($.validator.autoCreateRanges) { // auto-create ranges if (rules.min && rules.max) { @@ -873,15 +873,15 @@ $.extend($.validator, { delete rules.maxlength; } } - + // To support custom messages in metadata ignore rule methods titled "messages" if (rules.messages) { delete rules.messages } - + return rules; }, - + // Converts a simple string to a {string: true} rule, e.g., "required" to {required:true} normalizeRule: function(data) { if( typeof data == "string" ) { @@ -893,7 +893,7 @@ $.extend($.validator, { } return data; }, - + // http://docs.jquery.com/Plugins/Validation/Validator/addMethod addMethod: function(name, method, message) { $.validator.methods[name] = method; @@ -922,20 +922,20 @@ $.extend($.validator, { return $.trim(value).length > 0; } }, - + // http://docs.jquery.com/Plugins/Validation/Methods/remote remote: function(value, element, param) { if ( this.optional(element) ) return "dependency-mismatch"; - + var previous = this.previousValue(element); if (!this.settings.messages[element.name] ) this.settings.messages[element.name] = {}; previous.originalMessage = this.settings.messages[element.name].remote; this.settings.messages[element.name].remote = previous.message; - - param = typeof param == "string" && {url:param} || param; - + + param = typeof param == "string" && {url:param} || param; + if ( previous.old !== value ) { previous.old = value; var validator = this; @@ -978,65 +978,65 @@ $.extend($.validator, { minlength: function(value, element, param) { return this.optional(element) || this.getLength($.trim(value), element) >= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/maxlength maxlength: function(value, element, param) { return this.optional(element) || this.getLength($.trim(value), element) <= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/rangelength rangelength: function(value, element, param) { var length = this.getLength($.trim(value), element); return this.optional(element) || ( length >= param[0] && length <= param[1] ); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/min min: function( value, element, param ) { return this.optional(element) || value >= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/max max: function( value, element, param ) { return this.optional(element) || value <= param; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/range range: function( value, element, param ) { return this.optional(element) || ( value >= param[0] && value <= param[1] ); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/email email: function(value, element) { // contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/ return this.optional(element) || /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/url url: function(value, element) { // contributed by Scott Gonzalez: http://projects.scottsplayground.com/iri/ return this.optional(element) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/date date: function(value, element) { return this.optional(element) || !/Invalid|NaN/.test(new Date(value)); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/dateISO dateISO: function(value, element) { return this.optional(element) || /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/number number: function(value, element) { return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/digits digits: function(value, element) { return this.optional(element) || /^\d+$/.test(value); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/creditcard // based on http://en.wikipedia.org/wiki/Luhn creditcard: function(value, element) { @@ -1064,13 +1064,13 @@ $.extend($.validator, { return (nCheck % 10) == 0; }, - + // http://docs.jquery.com/Plugins/Validation/Methods/accept accept: function(value, element, param) { param = typeof param == "string" ? param.replace(/,/g, '|') : "png|jpe?g|gif"; - return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); + return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i")); }, - + // http://docs.jquery.com/Plugins/Validation/Methods/equalTo equalTo: function(value, element, param) { // bind to the blur event of the target in order to revalidate whenever the target field is updated @@ -1080,9 +1080,9 @@ $.extend($.validator, { }); return value == target.val(); } - + } - + }); // deprecated, use $.validator.format instead @@ -1092,7 +1092,7 @@ $.format = $.validator.format; // ajax mode: abort // usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); -// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() +// if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() ;(function($) { var ajax = $.ajax; var pendingRequests = {}; @@ -1114,13 +1114,13 @@ $.format = $.validator.format; // IE has native support, in other browsers, use event caputuring (neither bubbles) // provides delegate(type: String, delegate: Selector, handler: Callback) plugin for easier event delegation -// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target +// handler is only called when $(event.target).is(delegate), in the scope of the jquery-object for event.target // provides triggerEvent(type: String, target: Element) to trigger delegated events ;(function($) { $.each({ focus: 'focusin', - blur: 'focusout' + blur: 'focusout' }, function( original, fix ){ $.event.special[fix] = { setup:function() { diff --git a/CQRSGui/Scripts/jquery.validate.min.js b/CQRSGui/Scripts/jquery.validate.min.js index 54faf8f..9e476c3 100644 --- a/CQRSGui/Scripts/jquery.validate.min.js +++ b/CQRSGui/Scripts/jquery.validate.min.js @@ -15,10 +15,10 @@ * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: - * + * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND diff --git a/CQRSGui/ServiceLocator.cs b/CQRSGui/ServiceLocator.cs index 99ba807..6b7d7e5 100644 --- a/CQRSGui/ServiceLocator.cs +++ b/CQRSGui/ServiceLocator.cs @@ -5,6 +5,6 @@ namespace CQRSGui public static class ServiceLocator { public static FakeBus Bus { get; set; } - + } } \ No newline at end of file diff --git a/CQRSGui/Views/Shared/Site.Master b/CQRSGui/Views/Shared/Site.Master index 297859d..df07dfc 100644 --- a/CQRSGui/Views/Shared/Site.Master +++ b/CQRSGui/Views/Shared/Site.Master @@ -14,16 +14,16 @@

The mår betest UI ever

- +
-
- + + diff --git a/SimpleCQRS/AssemblyInfo.cs b/SimpleCQRS/AssemblyInfo.cs index d2de9d3..3469662 100644 --- a/SimpleCQRS/AssemblyInfo.cs +++ b/SimpleCQRS/AssemblyInfo.cs @@ -1,7 +1,7 @@ using System.Reflection; using System.Runtime.CompilerServices; -// Information about this assembly is defined by the following attributes. +// Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("SimpleCQRS")] @@ -19,7 +19,7 @@ [assembly: AssemblyVersion("1.0.*")] -// The following attributes are used to specify the signing key for the assembly, +// The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/SimpleCQRS/Commands.cs b/SimpleCQRS/Commands.cs index 6b3642f..1fb7cf9 100644 --- a/SimpleCQRS/Commands.cs +++ b/SimpleCQRS/Commands.cs @@ -4,7 +4,7 @@ namespace SimpleCQRS public class Command : Message { } - + public class DeactivateInventoryItem : Command { public readonly Guid InventoryItemId; public readonly int OriginalVersion; @@ -15,18 +15,18 @@ public DeactivateInventoryItem(Guid inventoryItemId, int originalVersion) OriginalVersion = originalVersion; } } - + public class CreateInventoryItem : Command { public readonly Guid InventoryItemId; public readonly string Name; - + public CreateInventoryItem(Guid inventoryItemId, string name) { InventoryItemId = inventoryItemId; Name = name; } } - + public class RenameInventoryItem : Command { public readonly Guid InventoryItemId; public readonly string NewName; @@ -51,7 +51,7 @@ public CheckInItemsToInventory(Guid inventoryItemId, int count, int originalVers OriginalVersion = originalVersion; } } - + public class RemoveItemsFromInventory : Command { public Guid InventoryItemId; public readonly int Count; diff --git a/SimpleCQRS/Domain.cs b/SimpleCQRS/Domain.cs index d3a51db..d46df02 100644 --- a/SimpleCQRS/Domain.cs +++ b/SimpleCQRS/Domain.cs @@ -63,7 +63,7 @@ public InventoryItem(Guid id, string name) public abstract class AggregateRoot { private readonly List _changes = new List(); - + public abstract Guid Id { get; } public int Version { get; internal set; } diff --git a/SimpleCQRS/EventStore.cs b/SimpleCQRS/EventStore.cs index 547c09e..f136cb6 100644 --- a/SimpleCQRS/EventStore.cs +++ b/SimpleCQRS/EventStore.cs @@ -16,7 +16,7 @@ public class EventStore : IEventStore private struct EventDescriptor { - + public readonly Event EventData; public readonly Guid Id; public readonly int Version; @@ -34,8 +34,8 @@ public EventStore(IEventPublisher publisher) _publisher = publisher; } - private readonly Dictionary> _current = new Dictionary>(); - + private readonly Dictionary> _current = new Dictionary>(); + public void SaveEvents(Guid aggregateId, IEnumerable events, int expectedVersion) { List eventDescriptors; diff --git a/SimpleCQRS/Events.cs b/SimpleCQRS/Events.cs index 7da563d..959217b 100644 --- a/SimpleCQRS/Events.cs +++ b/SimpleCQRS/Events.cs @@ -5,7 +5,7 @@ public class Event : Message { public int Version; } - + public class InventoryItemDeactivated : Event { public readonly Guid Id; @@ -28,7 +28,7 @@ public class InventoryItemRenamed : Event { public readonly Guid Id; public readonly string NewName; - + public InventoryItemRenamed(Guid id, string newName) { Id = id; @@ -40,7 +40,7 @@ public class ItemsCheckedInToInventory : Event { public Guid Id; public readonly int Count; - + public ItemsCheckedInToInventory(Guid id, int count) { Id = id; Count = count; @@ -51,7 +51,7 @@ public class ItemsRemovedFromInventory : Event { public Guid Id; public readonly int Count; - + public ItemsRemovedFromInventory(Guid id, int count) { Id = id; Count = count; diff --git a/SimpleCQRS/FakeBus.cs b/SimpleCQRS/FakeBus.cs index dfdcb97..99d9a2f 100644 --- a/SimpleCQRS/FakeBus.cs +++ b/SimpleCQRS/FakeBus.cs @@ -21,7 +21,7 @@ public void RegisterHandler(Action handler) where T : Message public void Send(T command) where T : Command { - List> handlers; + List> handlers; if (_routes.TryGetValue(typeof(T), out handlers)) { if (handlers.Count != 1) throw new InvalidOperationException("cannot send to more than one handler"); @@ -35,7 +35,7 @@ public void Send(T command) where T : Command public void Publish(T @event) where T : Event { - List> handlers; + List> handlers; if (!_routes.TryGetValue(@event.GetType(), out handlers)) return; foreach(var handler in handlers) { diff --git a/SimpleCQRS/ReadModel.cs b/SimpleCQRS/ReadModel.cs index 57c8fb2..281291b 100644 --- a/SimpleCQRS/ReadModel.cs +++ b/SimpleCQRS/ReadModel.cs @@ -113,7 +113,7 @@ public InventoryItemDetailsDto GetInventoryItemDetails(Guid id) } } - public static class BullShitDatabase + public static class BullShitDatabase { public static Dictionary details = new Dictionary(); public static List list = new List();