]+)?><\/span>/gi,"").replace(/^?<\/p>$/,"");t.innerHTML=e}return e!==undefined?this:null};break;case"date time":obj.val=function(e){var t=[],r=this.elem();if(e===undefined){for(var n=0;no;o++)if(e[o])for(var s=r[o].getElementsByTagName("option"),n=s.length;n--;)s[n].value===e[o]&&(s[n].selected=!0);return this};break;case"url":obj.val=function(e){e!==undefined&&("string"==typeof e?e=[e,e]:1===e.length&&(e=[e[0],e[0]]));for(var t=[],r=this.elem(),n=0,s=0;n]+)>)/gi,"").replace(/^\s+|\s+$| /g,"").replace(/
| /g,"").replace(/;$/,"").split(";");for(var r=[],n=0;n-1){if(t[i-1].checked=!0,s.push(t[i].innerHTML),"choices radio"===r.slice(0,13))return this}else if(e!==undefined&&"label"===t[i].tagName.toLowerCase())t[i-1].checked=!1;else if(e===undefined&&t[i].checked){if("choices radio plus"===r)return"Specify your own value:"===t[i+1].innerHTML?t[i+2].value:t[i+1].innerHTML;n.push("Specify your own value:"===t[i+1].innerHTML?t[i+2].value:t[i+1].innerHTML)}if(e===undefined)return n;if(e!==undefined){if("choices radio plus"===r)t[t.length-3].checked=!0,t[t.length-1].value=e;else if("choices checkbox plus"===r){for(var o=[],i=e.length;i--;)-1===s.indexOf(e[i])&&o.push(e[i]);o.length>0&&(t[t.length-3].checked=!0,t[t.length-1].value=o.join(" "))}return this}},obj.options=function(){for(var e=this.elem(),t=[],r=this.type().slice(-4),n=0;nt;t++)e.call(this.data[t]);return this},val:function(e){if("object"==typeof e&&e.identity!==undefined?(identity=e.identity,e=undefined):identity=!1,e===undefined){var t=[];return this.each(function(){identity?t[this.name()]=this.val():t.push(this.val())}),0===t.length?"":1===t.length?t[0]:t}if("object"!=typeof e)this.each(function(){this.val(e)});else{var r=0;if(this.length>1){if(e.length!==this.length)throw new Error("$SP.formfields.val: the array passed for val() must have the same size as the number of fields in formfields()");this.each(function(){this.val(e[r++])})}else this.each(function(){this.val(e)})}return this},elem:function(){var e=[],t="function"==typeof jQuery;switch(this.each(function(){var t=this.elem();t instanceof jQuery==!0&&(t=t.toArray()),e=e.concat(t)}),e.length){case 0:return t?jQuery():null;case 1:return t?jQuery(e[0]):e[0];default:return t?jQuery(e):e}},row:function(){var e=[],t="function"==typeof jQuery;switch(this.each(function(){var t=this.row();t instanceof jQuery==!0&&(t=t[0]),e.push(t)}),e.length){case 0:return t?jQuery():null;case 1:return t?jQuery(e[0]):e[0];default:return t?jQuery(e):e}},type:function(){var e=[];switch(this.each(function(){e.push(this.type())}),e.length){case 0:return"";case 1:return e[0];default:return e}},description:function(){var e=[];switch(this.each(function(){e.push(this.description())}),e.length){case 0:return"";case 1:return e[0];default:return e}},isMandatory:function(){var e=[];switch(this.each(function(){e.push(this.isMandatory())}),e.length){case 0:return!1;case 1:return e[0];default:return e}},name:function(){var e=[];switch(this.each(function(){e.push(this.name())}),e.length){case 0:return"";case 1:return e[0];default:return e}},notify:function(e,t){if(e===undefined)throw"Error 'notify': you must provide the message to show.";if("string"!=typeof e)throw"Error 'notify': you must provide a string for the message to show.";if(t=t||{},t.timeout=isNaN(t.timeout)?5:t.timeout,t.override=t.override===!0?!0:!1,t.overrideAll=t.overrideAll===!0?!0:!1,t.overrideSticky=t.overrideSticky===!1?!1:!0,t.sticky=t.sticky===!0?!0:!1,t.name=t.name||(new Date).getTime(),t.after=t.after||function(){},t.fake=t.fake===!0?!0:!1,t.ignoreQueue=t.ignoreQueue===!0?!0:!1,__SP_NOTIFY_READY===!1)return __SP_NOTIFY_QUEUE.push({message:e,options:t}),$(document).ready(function(){ExecuteOrDelayUntilScriptLoaded(function(){ExecuteOrDelayUntilScriptLoaded(function(){__SP_NOTIFY_READY=!0,$SP().notify("fake",{fake:!0})},"core.js")},"sp.js")}),this;if(t.ignoreQueue!==!0)for(;__SP_NOTIFY_QUEUE.length>0;){var r=__SP_NOTIFY_QUEUE.shift();r.options.ignoreQueue=!0,$SP().notify(r.message,r.options)}if(t.fake!==!0){if(__SP_NOTIFY.length>0&&(t.overrideAll?$SP().removeNotify({all:!0,includeSticky:t.overrideSticky}):t.override&&$SP().removeNotify(__SP_NOTIFY[__SP_NOTIFY.length-1].name)),__SP_NOTIFY.push({name:t.name,id:SP.UI.Notify.addNotification(e,!0),options:t}),!t.sticky){setTimeout(function(){$SP().removeNotify(t.name,{timeout:!0})},1e3*t.timeout)}return this}},removeNotify:function(e,t){switch(arguments.length){case 0:throw"Error 'removeNotify': you must provide 'name' or 'options'.";case 2:if("object"!=typeof t)throw"Error 'removeNotify': you must provide an object for 'options'."}if(1===arguments.length&&"object"==typeof e&&(t=e,e=undefined),t=t||{all:!1},t.timeout=t.timeout===!0?!0:!1,__SP_NOTIFY_READY===!1&&__SP_NOTIFY_QUEUE.length>0)return setTimeout(function(){$SP().removeNotify(e,t)},150),this;var r,n=this;if(t.all===!0){for(var s=[];__SP_NOTIFY.length>0;)r=__SP_NOTIFY.shift(),t.includeSticky===!1&&r.options.sticky===!0?s.push(r):(SP.UI.Notify.removeNotification(r.id),setTimeout(function(){r.options.after.call(n,r.name,!1)},150));__SP_NOTIFY=s.slice(0)}else if(e!==undefined)for(var i=0,o=__SP_NOTIFY.length;o>i;i++)if(__SP_NOTIFY[i].name==e)return r=__SP_NOTIFY.splice(i,1)[0],SP.UI.Notify.removeNotification(r.id),setTimeout(function(){r.options.after.call(n,r.name,t.timeout)},150),this;return this},registerPlugin:function(e,t){var r=$("html"),n=r.data("sp-plugins")||[];if("undefined"!=typeof n[e])throw"Error 'registerPlugin': '"+e+"' is already registered.";return n[e]=t,r.data("sp-plugins",n),!0},plugin:function(e,t){var r=$("html").data("sp-plugins")||[];if(t=t||{},"function"!=typeof r[e])throw"Error $SP().plugin: the plugin '"+e+"' is not registered.";return r[e].call(this,t),this}};var myElem=function(){var e=function(e){return new t(e)},t=function(e){return this.mynode=e,this.singleList=!0,this};return e.fn=t.prototype={getAttribute:function(e){return this.mynode.getAttribute("ows_"+e.replace(/ /g,""))},getAttributes:function(){return this.mynode.attributes}},e}(),extendMyObject=function(e){this.attributes=e};return extendMyObject.prototype.getAttribute=function(e){return this.attributes[e]},extendMyObject.prototype.getAttributes=function(){return this.attributes},SharepointPlus.prototype.noConflict=function(){window._$SP=window._SharepointPlus=window.$SP},window.$SP=window.SharepointPlus=SharepointPlus}(this,document);
\ No newline at end of file