"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/jquery.plugins.min.js" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

jquery.plugins.min.js  (mybb_1819):jquery.plugins.min.js  (mybb_1820)
!function(t){t.jGrowl=function(e,i){0===t("#jGrowl").length&&t('<div id="jGrowl" ></div>').addClass(i&&i.position?i.position:t.jGrowl.defaults.position).appendTo (i&&i.appendTo?i.appendTo:t.jGrowl.defaults.appendTo),t("#jGrowl").jGrowl(e,i)}, t.fn.jGrowl=function(e,i){if(void 0===i&&t.isPlainObject(e)&&(e=(i=e).message),t .isFunction(this.each)){var o=arguments;return this.each(function(){void 0===t(t his).data("jGrowl.instance")&&(t(this).data("jGrowl.instance",t.extend(new t.fn. jGrowl,{notifications:[],element:null,interval:null})),t(this).data("jGrowl.inst ance").startup(this)),t.isFunction(t(this).data("jGrowl.instance")[e])?t(this).d ata("jGrowl.instance")[e].apply(t(this).data("jGrowl.instance"),t.makeArray(o).s lice(1)):t(this).data("jGrowl.instance").create(e,i)})}},t.extend(t.fn.jGrowl.pr ototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",appe ndTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",c heck:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",cl oser:!0,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:fu nction(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},befo reClose:function(){},close:function(){},click:function(){},animateOpen:{opacity: "show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:nu ll,create:function(e,i){var o=t.extend({},this.defaults,i);void 0!==o.speed&&(o. openDuration=o.speed,o.closeDuration=o.speed),this.notifications.push({message:e ,options:o}),o.log.apply(this.element,[this.element,e,o])},render:function(e){va r i=this,o=e.message,n=e.options;n.themeState=""===n.themeState?"":"ui-state-"+n .themeState;var s=t("<div/>").addClass("jGrowl-notification alert "+n.themeState +" ui-corner-all"+(void 0!==n.group&&""!==n.group?" "+n.group:"")).append(t("<bu tton/>").addClass("jGrowl-close").html(n.closeTemplate)).append(t("<div/>").addC lass("jGrowl-header").html(n.header)).append(t("<div/>").addClass("jGrowl-messag e").html(o)).data("jGrowl",n).addClass(n.theme).children(".jGrowl-close").bind(" click.jGrowl",function(){return t(this).parent().trigger("jGrowl.beforeClose"),! 1}).parent();t(s).bind("mouseover.jGrowl",function(){t(".jGrowl-notification",i. element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){t(".jGrowl- notification",i.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",func tion(){!1!==n.beforeOpen.apply(s,[s,o,n,i.element])&&t(this).trigger("jGrowl.ope n")}).bind("jGrowl.open",function(){!1!==n.open.apply(s,[s,o,n,i.element])&&("af ter"==n.glue?t(".jGrowl-notification:last",i.element).after(s):t(".jGrowl-notifi cation:first",i.element).before(s),t(this).animate(n.animateOpen,n.openDuration, n.easing,function(){!1===t.support.opacity&&this.style.removeAttribute("filter") ,null!==t(this).data("jGrowl")&&void 0!==t(this).data("jGrowl")&&(t(this).data(" jGrowl").created=new Date),t(this).trigger("jGrowl.afterOpen")}))}).bind("jGrowl .afterOpen",function(){n.afterOpen.apply(s,[s,o,n,i.element])}).bind("click",fun ction(){n.click.apply(s,[s,o,n,i.element])}).bind("jGrowl.beforeClose",function( ){!1!==n.beforeClose.apply(s,[s,o,n,i.element])&&t(this).trigger("jGrowl.close") }).bind("jGrowl.close",function(){t(this).data("jGrowl.pause",!0),t(this).animat e(n.animateClose,n.closeDuration,n.easing,function(){t.isFunction(n.close)?!1!== n.close.apply(s,[s,o,n,i.element])&&t(this).remove():t(this).remove()})}).trigge r("jGrowl.beforeOpen"),""!==n.corners&&void 0!==t.fn.corner&&t(s).corner(n.corne rs),t(".jGrowl-notification:parent",i.element).length>1&&0===t(".jGrowl-closer", i.element).length&&!1!==this.defaults.closer&&t(this.defaults.closerTemplate).ad dClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this .defaults.theme).appendTo(i.element).animate(this.defaults.animateOpen,this.defa ults.speed,this.defaults.easing).bind("click.jGrowl",function(){t(this).siblings ().trigger("jGrowl.beforeClose"),t.isFunction(i.defaults.closer)&&i.defaults.clo ser.apply(t(this).parent()[0],[t(this).parent()[0]])})},update:function(){t(this .element).find(".jGrowl-notification:parent").each(function(){void 0!==t(this).d ata("jGrowl")&&void 0!==t(this).data("jGrowl").created&&t(this).data("jGrowl").c reated.getTime()+parseInt(t(this).data("jGrowl").life,10)<(new Date).getTime()&& !0!==t(this).data("jGrowl").sticky&&(void 0===t(this).data("jGrowl.pause")||!0!= =t(this).data("jGrowl.pause"))&&t(this).trigger("jGrowl.beforeClose")}),this.not ifications.length>0&&(0===this.defaults.pool||t(this.element).find(".jGrowl-noti fication:parent").length<this.defaults.pool)&&this.render(this.notifications.shi ft()),t(this.element).find(".jGrowl-notification:parent").length<2&&t(this.eleme nt).find(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.spee d,this.defaults.easing,function(){t(this).remove()})},startup:function(e){this.e lement=t(e).addClass("jGrowl").append('<div class="jGrowl-notification"></div>') ,this.interval=setInterval(function(){var i=t(e).data("jGrowl.instance");void 0! ==i&&i.update()},parseInt(this.defaults.check,10))},shutdown:function(){t(this.e lement).removeClass("jGrowl").find(".jGrowl-notification").trigger("jGrowl.close ").parent().empty(),clearInterval(this.interval)},close:function(){t(this.elemen t).find(".jGrowl-notification").each(function(){t(this).trigger("jGrowl.beforeCl ose")})}}),t.jGrowl.defaults=t.fn.jGrowl.prototype.defaults}(jQuery),function(t) {"object"==typeof module&&"object"==typeof module.exports?t(require("jquery"),wi ndow,document):t(jQuery,window,document)}(function(t,e,i,o){var n=[],s=function( ){return n.length?n[n.length-1]:null},a=function(){var t,e=!1;for(t=n.length-1;t >=0;t--)n[t].$blocker&&(n[t].$blocker.toggleClass("current",!e).toggleClass("beh ind",e),e=!0)};t.modal=function(e,i){var o,a;if(this.$body=t("body"),this.option s=t.extend({},t.modal.defaults,i),this.options.doFade=!isNaN(parseInt(this.optio ns.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;t.modal. isActive();)t.modal.close();if(n.push(this),e.is("a"))if(a=e.attr("href"),/^#/.t est(a)){if(this.$elm=t(a),1!==this.$elm.length)return null;this.$body.append(thi s.$elm),this.open()}else this.$elm=t("<div>"),this.$body.append(this.$elm),o=fun ction(t,e){e.elm.remove()},this.showSpinner(),e.trigger(t.modal.AJAX_SEND),t.get (a).done(function(i){if(t.modal.isActive()){e.trigger(t.modal.AJAX_SUCCESS);var n=s();n.$elm.empty().append(i).on(t.modal.CLOSE,o),n.hideSpinner(),n.open(),e.tr igger(t.modal.AJAX_COMPLETE)}}).fail(function(){e.trigger(t.modal.AJAX_FAIL),s() .hideSpinner(),n.pop(),e.trigger(t.modal.AJAX_COMPLETE)});else this.$elm=e,this. $body.append(this.$elm),this.open()},t.modal.prototype={constructor:t.modal,open :function(){var e=this;this.block(),this.options.doFade?setTimeout(function(){e. show()},this.options.fadeDuration*this.options.fadeDelay):this.show(),t(i).off(" keydown.modal").on("keydown.modal",function(t){var e=s();27==t.which&&e.options. escapeClose&&e.close()}),this.options.clickClose&&this.$blocker.click(function(e ){e.target==this&&t.modal.close()})},close:function(){n.pop(),this.unblock(),thi s.hide(),t.modal.isActive()||t(i).off("keydown.modal")},block:function(){this.$e lm.trigger(t.modal.BEFORE_BLOCK,[this._ctx()]),this.$body.css("overflow","hidden "),this.$blocker=t('<div class="jquery-modal blocker current"></div>').appendTo( this.$body),a(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opa city:1},this.options.fadeDuration),this.$elm.trigger(t.modal.BLOCK,[this._ctx()] )},unblock:function(e){!e&&this.options.doFade?this.$blocker.fadeOut(this.option s.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(th is.$body),this.$blocker.remove(),this.$blocker=null,a(),t.modal.isActive()||this .$body.css("overflow",""))},show:function(){this.$elm.trigger(t.modal.BEFORE_OPE N,[this._ctx()]),this.options.showClose&&(this.closeButton=t('<a href="#close-mo dal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.op tions.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(t his.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.cs s("opacity",0).show().animate({opacity:1},this.options.fadeDuration):this.$elm.s how(),this.$elm.trigger(t.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.t rigger(t.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.re move();var e=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuratio n,function(){e.$elm.trigger(t.modal.AFTER_CLOSE,[e._ctx()])}):this.$elm.hide(0,f unction(){e.$elm.trigger(t.modal.AFTER_CLOSE,[e._ctx()])}),this.$elm.trigger(t.m odal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(thi s.spinner=this.spinner||t('<div class="'+this.options.modalClass+'-spinner"></di v>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinn er.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:fun ction(){return{elm:this.$elm,$blocker:this.$blocker,options:this.options}}},t.mo dal.close=function(e){if(t.modal.isActive()){e&&e.preventDefault();var i=s();ret urn i.close(),i.$elm}},t.modal.isActive=function(){return n.length>0},t.modal.ge tCurrent=s,t.modal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,close Text:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:!0,sh owClose:!0,fadeDuration:null,fadeDelay:1},t.modal.BEFORE_BLOCK="modal:before-blo ck",t.modal.BLOCK="modal:block",t.modal.BEFORE_OPEN="modal:before-open",t.modal. OPEN="modal:open",t.modal.BEFORE_CLOSE="modal:before-close",t.modal.CLOSE="modal :close",t.modal.AFTER_CLOSE="modal:after-close",t.modal.AJAX_SEND="modal:ajax:se nd",t.modal.AJAX_SUCCESS="modal:ajax:success",t.modal.AJAX_FAIL="modal:ajax:fail ",t.modal.AJAX_COMPLETE="modal:ajax:complete",t.fn.modal=function(e){return 1=== this.length&&new t.modal(this,e),this},t(i).on("click.modal",'a[rel="modal:close "]',t.modal.close),t(i).on("click.modal",'a[rel="modal:open"]',function(e){e.pre ventDefault(),t(this).modal()})}),function(t){var e=function(e,i){var e=t(e),o=t his,n=t("#"+e.attr("id")+"_popup");if(void 0===i)var i=!0;this.open=function(s){ if(s.preventDefault(),n.is(":visible"))o.close();else{var a=e.offset();if(a.top+ =e.outerHeight(),e.offset().left+n.outerWidth()>t(window).width())r=n.outerWidth ()-e.outerWidth();else var r=0;n.css({position:"absolute",top:a.top,left:a.left- r}),n.show(),t("body, .popup_item").bind("click.close_popup",function(n){i?0==t( n.target).closest("#"+e.attr("id")).length&&o.close():0==t(n.target).closest("#" +e.attr("id")).length&&0==t(n.target).closest("#"+e.attr("id")+"_popup").length& &o.close()})}},this.close=function(t){n.hide()}};t.fn.popupMenu=function(i){retu rn this.each(function(){var o=new e(this,i);t(this).click(o.open)})}}(jQuery),fu nction(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuer y)}(this,function(t){"use strict";var e=function(t,i){var o=this;return o.id=e.c ount++,e.lifo.push(o),t&&o.open(t,i),o};e.defaults={prefix:"jqi",classes:{box:"" ,fade:"",prompt:"",form:"",close:"",title:"",message:"",buttons:"",button:"",def aultButton:""},title:"",closeText:"&times;",buttons:{Ok:!0},buttonTimeout:1e3,lo aded:function(t){},submit:function(t,e,i,o){},close:function(t,e,i,o){},statecha nging:function(t,e,i){},statechanged:function(t,e){},opacity:.6,zIndex:999,overl ayspeed:"slow",promptspeed:"fast",show:"fadeIn",hide:"fadeOut",focus:0,defaultBu tton:0,useiframe:!1,top:"15%",position:{container:null,x:null,y:null,arrow:null, width:null},persistent:!0,timeout:0,states:{},initialState:0,state:{name:null,ti tle:"",html:"",buttons:{Ok:!0},focus:0,defaultButton:0,position:{container:null, x:null,y:null,arrow:null,width:null},submit:function(t,e,i,o){return!0}}},e.setD efaults=function(i){e.defaults=t.extend({},e.defaults,i)},e.setStateDefaults=fun ction(i){e.defaults.state=t.extend({},e.defaults.state,i)},e.count=0,e.lifo=[],e .getLast=function(){var t=e.lifo.length;return t>0&&e.lifo[t-1]},e.removeFromSta ck=function(t){for(var i=e.lifo.length-1;i>=0;i--)if(e.lifo[i].id===t)return e.l ifo.splice(i,1)[0]},e.prototype={id:null,open:function(i,o){var n=this;n.options =t.extend({},e.defaults,o),n.timeout&&clearTimeout(n.timeout),n.timeout=!1;var s =n.options,a=t(document.body),r=t(window),l='<div class="'+s.prefix+"box "+s.cla sses.box+'">';s.useiframe&&t("object, applet").length>0?l+='<iframe src="javascr ipt:false;" class="'+s.prefix+"fade "+s.classes.fade+'"></iframe>':l+='<div clas s="'+s.prefix+"fade "+s.classes.fade+'"></div>',l+='<div class="'+s.prefix+" "+s .classes.prompt+'"><form action="#" class="'+s.prefix+"form "+s.classes.form+'"> <div class="'+s.prefix+"close "+s.classes.close+'">'+s.closeText+'</div><div cla ss="'+s.prefix+'states"></div></form></div></div>',n.jqib=t(l).appendTo(a),n.jqi =n.jqib.children("."+s.prefix),n.jqif=n.jqib.children("."+s.prefix+"fade"),i.con structor===String&&(i={state0:{title:s.title,html:i,buttons:s.buttons,position:s .position,focus:s.focus,defaultButton:s.defaultButton,submit:s.submit}}),n.optio ns.states={};var d,c;for(d in i)c=t.extend({},e.defaults.state,{name:d},i[d]),n. addState(c.name,c),""===n.currentStateName&&(n.currentStateName=c.name);n.jqi.on ("click","."+s.prefix+"buttons button",function(e){var i=t(this),o=i.parents("." +s.prefix+"state"),a=o.data("jqi-name"),r=n.options.states[a],l=o.children("."+s .prefix+"message"),d=r.buttons[i.text()]||r.buttons[i.html()],c={};if(n.options. buttonTimeout>0&&(n.disableStateButtons(a),setTimeout(function(){n.enableStateBu ttons(a)},n.options.buttonTimeout)),void 0===d)for(var u in r.buttons)r.buttons[ u].title!==i.text()&&r.buttons[u].title!==i.html()||(d=r.buttons[u].value);t.eac h(n.jqi.children("form").serializeArray(),function(t,e){void 0===c[e.name]?c[e.n ame]=e.value:typeof c[e.name]===Array||"object"==typeof c[e.name]?c[e.name].push (e.value):c[e.name]=[c[e.name],e.value]});var p=new t.Event("impromptu:submit"); p.stateName=r.name,p.state=o,o.trigger(p,[d,l,c]),p.isDefaultPrevented()||n.clos e(!0,d,l,c)});var u=function(){if(s.persistent){var e=s.top.toString().indexOf(" %")>=0?r.height()*(parseInt(s.top,10)/100):parseInt(s.top,10),i=parseInt(n.jqi.c ss("top").replace("px",""),10)-e;t("html,body").animate({scrollTop:i},"fast",fun ction(){var t=0;n.jqib.addClass(s.prefix+"warning");var e=setInterval(function() {n.jqib.toggleClass(s.prefix+"warning"),t++>1&&(clearInterval(e),n.jqib.removeCl ass(s.prefix+"warning"))},100)})}else n.close(!0)};return n.position(),n.style() ,n._windowResize=function(t){n.position(t)},r.resize({animate:!1},n._windowResiz e),n.jqif.click(u),n.jqi.find("."+s.prefix+"close").click(function(){n.close()}) ,n.jqi.find("."+s.prefix+"form").submit(function(){return!1}),n.jqib.on("keydown ",function(e){var i=window.event?event.keyCode:e.keyCode;if(27===i&&u(),13===i){ var o=n.getCurrentState().find("."+s.prefix+"defaultbutton");!1===t(e.target).is ("textarea,."+s.prefix+"button")&&o.length>0&&(e.preventDefault(),o.click())}if( 9===i){var a=t("input,select,textarea,button",n.getCurrentState()),r=!e.shiftKey &&e.target===a[a.length-1],l=e.shiftKey&&e.target===a[0];if(r||l)return setTimeo ut(function(){if(a){var t=a[!0===l?a.length-1:0];t&&t.focus()}},10),!1}}).on("im promptu:loaded",s.loaded).on("impromptu:close",s.close).on("impromptu:statechang ing",s.statechanging).on("impromptu:statechanged",s.statechanged),n.jqif[s.show] (s.overlayspeed),n.jqi[s.show](s.promptspeed,function(){n.goToState(isNaN(s.init ialState)?s.initialState:n.jqi.find("."+s.prefix+"states ."+s.prefix+"state").eq (s.initialState).data("jqi-name")),n.jqib.trigger("impromptu:loaded")}),s.timeou t>0&&(n.timeout=setTimeout(function(){n.close(!0)},s.timeout)),n},close:function (i,o,n,s){var a=this;return e.removeFromStack(a.id),a.timeout&&(clearTimeout(a.t imeout),a.timeout=!1),a.jqib&&a.jqib[a.options.hide]("fast",function(){a.jqib.tr igger("impromptu:close",[o,n,s]),a.jqib.remove(),t(window).off("resize",a._windo wResize),"function"==typeof i&&i()}),a.currentStateName="",a},addState:function( i,o,n){var s,a,r,l,d,c=this,u="",p=null,f="",h="",m=c.options,g=t.isFunction(o.p osition)?o.position():o.position,v=c.jqi.find("."+m.prefix+"states"),w=[],b=0;if (o=t.extend({},e.defaults.state,{name:i},o),t.isPlainObject(g)&&null!==g.arrow&& (f='<div class="'+m.prefix+"arrow "+m.prefix+"arrow"+g.arrow+'"></div>'),o.title &&""!==o.title&&(h='<div class="lead '+m.prefix+"title "+m.classes.title+'">'+o. title+"</div>"),s=o.html,"function"==typeof o.html&&(s="Error: html function mus t return text"),u+='<div class="'+m.prefix+'state" data-jqi-name="'+i+'">'+f+h+' <div class="'+m.prefix+"message "+m.classes.message+'">'+s+'</div><div class="'+ m.prefix+"buttons"+(t.isEmptyObject(o.buttons)?"hide ":" ")+m.classes.buttons+'" >',t.isArray(o.buttons))w=o.buttons;else if(t.isPlainObject(o.buttons))for(r in o.buttons)o.buttons.hasOwnProperty(r)&&w.push({title:r,value:o.buttons[r]});for( b=0,d=w.length;b<d;b++)l=w[b],a=o.focus===b||isNaN(o.focus)&&o.defaultButton===b ?m.prefix+"defaultbutton "+m.classes.defaultButton:"",u+='<button class="'+m.cla sses.button+" "+m.prefix+"button "+a,void 0!==l.classes&&(u+=" "+(t.isArray(l.cl asses)?l.classes.join(" "):l.classes)+" "),u+='" name="'+m.prefix+"_"+i+"_button "+l.title.replace(/[^a-z0-9]+/gi,"")+'" value="'+l.value+'">'+l.title+"</button> ";return u+="</div></div>",(p=t(u).css({display:"none"})).on("impromptu:submit", o.submit),void 0!==n?c.getState(n).after(p):v.append(p),c.options.states[i]=o,p} ,removeState:function(t,e){var i=this,o=i.getState(t),n=function(){o.remove()};r eturn 0!==o.length&&("none"!==o.css("display")?void 0!==e&&i.getState(e).length> 0?i.goToState(e,!1,n):o.next().length>0?i.nextState(n):o.prev().length>0?i.prevS tate(n):i.close():o.slideUp("slow",n),!0)},getApi:function(){return this},getBox :function(){return this.jqib},getPrompt:function(){return this.jqi},getState:fun ction(t){return this.jqi.find('[data-jqi-name="'+t+'"]')},getCurrentState:functi on(){return this.getState(this.getCurrentStateName())},getCurrentStateName:funct ion(){return this.currentStateName},disableStateButtons:function(e,i,o){var n=th is;t.isArray(e)&&(i=e,e=null),n.getState(e||n.getCurrentStateName()).find("."+n. options.prefix+"button").each(function(e,n){void 0!==i&&-1===t.inArray(n.value,i )||(n.disabled=!o)})},enableStateButtons:function(t,e){this.disableStateButtons( t,e,!0)},position:function(e){var i=this,o=t.fx.off,n=i.getCurrentState(),s=i.op tions.states[n.data("jqi-name")],a=s?t.isFunction(s.position)?s.position():s.pos ition:void 0,r=t(window),l=document.body.scrollHeight,d=t(window).height(),c=(t( document).height(),l>d?l:d),u=parseInt(r.scrollTop(),10),p=u+(i.options.top.toSt ring().indexOf("%")>=0?d*(parseInt(i.options.top,10)/100):parseInt(i.options.top ,10));if(void 0!==e&&!1===e.data.animate&&(t.fx.off=!0),i.jqib.css({position:"ab solute",height:c,width:"100%",top:0,left:0,right:0,bottom:0}),i.jqif.css({positi on:"fixed",height:c,width:"100%",top:0,left:0,right:0,bottom:0}),a&&a.container) {var f=t(a.container).offset(),h=!1;t.isPlainObject(f)&&void 0!==f.top&&(p=f.top +a.y-(i.options.top.toString().indexOf("%")>=0?d*(parseInt(i.options.top,10)/100 ):parseInt(i.options.top,10)),i.jqi.css({position:"absolute"}),i.jqi.animate({to p:f.top+a.y,left:f.left+a.x,marginLeft:0,width:void 0!==a.width?a.width:null},fu nction(){!h&&f.top+a.y+i.jqi.outerHeight(!0)>u+d&&(t("html,body").animate({scrol lTop:p},"slow","swing",function(){}),h=!0)}),(p<u||p>u+d)&&(t("html,body").anima te({scrollTop:p},"slow","swing",function(){}),h=!0))}else a&&a.width?(i.jqi.css( {position:"absolute",left:"50%"}),i.jqi.animate({top:a.y||p,left:a.x||"50%",marg inLeft:a.width/2*-1,width:a.width})):i.jqi.css({position:"absolute",top:p,left:" 50%",marginLeft:i.jqi.outerWidth(!1)/2*-1});void 0!==e&&!1===e.data.animate&&(t. fx.off=o)},style:function(){var t=this;t.jqif.css({zIndex:t.options.zIndex,displ ay:"none",opacity:t.options.opacity}),t.jqi.css({zIndex:t.options.zIndex+1,displ ay:"none"}),t.jqib.css({zIndex:t.options.zIndex})},goToState:function(e,i,o){var n=this,s=(n.jqi,n.options),a=n.getState(e),r=s.states[a.data("jqi-name")],l=new t.Event("impromptu:statechanging"),d=n.options;if(void 0!==r){if("function"==ty peof r.html){var c=r.html;a.find("."+d.prefix+"message ").html(c())}"function"== typeof i&&(o=i,i=!1),n.jqib.trigger(l,[n.getCurrentStateName(),e]),!l.isDefaultP revented()&&a.length>0&&(n.jqi.find("."+d.prefix+"parentstate").removeClass(d.pr efix+"parentstate"),i?(n.jqi.find("."+d.prefix+"substate").not(a).slideUp(s.prom ptspeed).removeClass("."+d.prefix+"substate").find("."+d.prefix+"arrow").hide(), n.jqi.find("."+d.prefix+"state:visible").addClass(d.prefix+"parentstate"),a.addC lass(d.prefix+"substate")):n.jqi.find("."+d.prefix+"state").not(a).slideUp(s.pro mptspeed).find("."+d.prefix+"arrow").hide(),n.currentStateName=r.name,a.slideDow n(s.promptspeed,function(){var i=t(this);n.enableStateButtons(),"string"==typeof r.focus?i.find(r.focus).eq(0).focus():i.find("."+d.prefix+"defaultbutton").focu s(),i.find("."+d.prefix+"arrow").show(s.promptspeed),"function"==typeof o&&n.jqi b.on("impromptu:statechanged",o),n.jqib.trigger("impromptu:statechanged",[e]),"f unction"==typeof o&&n.jqib.off("impromptu:statechanged",o)}),i||n.position())}re turn a},nextState:function(t){var e=this,i=e.getCurrentState().next();return i.l ength>0&&e.goToState(i.data("jqi-name"),t),i},prevState:function(t){var e=this,i =e.getCurrentState().prev();return i.length>0&&e.goToState(i.data("jqi-name"),t) ,i}},t.prompt=function(t,i){return new e(t,i).jqi},t.each(e,function(e,i){t.prom pt[e]=i}),t.each(e.prototype,function(i,o){t.prompt[i]=function(){var t=e.getLas t();if(t&&"function"==typeof t[i])return t[i].apply(t,arguments)}}),t.fn.prompt= function(e){void 0===e&&(e={}),void 0===e.withDataAndEvents&&(e.withDataAndEvent s=!1),t.prompt(t(this).clone(e.withDataAndEvents).html(),e)},window.Impromptu=e} ),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0 ),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var i=window.Cookies,o =window.Cookies=t();o.noConflict=function(){return window.Cookies=i,o}}}(functio n(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for (var o in i)e[o]=i[o]}return e}function e(i){function o(e,n,s){var a;if("undefin ed"!=typeof document){if(arguments.length>1){if("number"==typeof(s=t({path:"/"}, o.defaults,s)).expires){var r=new Date;r.setMilliseconds(r.getMilliseconds()+864 e5*s.expires),s.expires=r}s.expires=s.expires?s.expires.toUTCString():"";try{a=J SON.stringify(n),/^[\{\[]/.test(a)&&(n=a)}catch(t){}n=i.write?i.write(n,e):encod eURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60 |7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace( /%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l= "";for(var d in s)s[d]&&(l+="; "+d,!0!==s[d]&&(l+="="+s[d]));return document.coo kie=e+"="+n+l}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[] ,u=/(%[0-9A-Z]{2})+/g,p=0;p<c.length;p++){var f=c[p].split("="),h=f.slice(1).joi n("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var m=f[0].replace(u,decodeURICo mponent);if(h=i.read?i.read(h,m):i(h,m)||h.replace(u,decodeURIComponent),this.js on)try{h=JSON.parse(h)}catch(t){}if(e===m){a=h;break}e||(a[m]=h)}catch(t){}}retu rn a}}return o.set=o,o.get=function(t){return o.call(o,t)},o.getJSON=function(){ return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=funct ion(e,i){o(e,"",t(i,{expires:-1}))},o.withConverter=e,o}return e(function(){})}) ; (function($){$.jGrowl=function(m,o){if($("#jGrowl").length===0)$('<div id="jGrow l"></div>').addClass(o&&o.position?o.position:$.jGrowl.defaults.position).append To(o&&o.appendTo?o.appendTo:$.jGrowl.defaults.appendTo);$("#jGrowl").jGrowl(m,o) };$.fn.jGrowl=function(m,o){if(o===undefined&&$.isPlainObject(m)){o=m;m=o.messag e}if($.isFunction(this.each)){var args=arguments;return this.each(function(){if( $(this).data("jGrowl.instance")===undefined){$(this).data("jGrowl.instance",$.ex tend(new $.fn.jGrowl,{notifications:[],element:null,interval:null}));$(this).dat a("jGrowl.instance").startup(this)}if($.isFunction($(this).data("jGrowl.instance ")[m])){$(this).data("jGrowl.instance")[m].apply($(this).data("jGrowl.instance") ,$.makeArray(args).slice(1))}else{$(this).data("jGrowl.instance").create(m,o)}}) }};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:fa lse,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState :"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDurati on:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"< div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:func tion(){},open:function(){},beforeClose:function(){},close:function(){},click:fun ction(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notificati ons:[],element:null,interval:null,create:function(message,options){var o=$.exten d({},this.defaults,options);if(typeof o.speed!=="undefined"){o.openDuration=o.sp eed;o.closeDuration=o.speed}this.notifications.push({message:message,options:o}) ;o.log.apply(this.element,[this.element,message,o])},render:function(n){var self =this;var message=n.message;var o=n.options;o.themeState=o.themeState===""?"":"u i-state-"+o.themeState;var notification=$("<div/>").addClass("jGrowl-notificatio n alert "+o.themeState+" ui-corner-all"+(o.group!==undefined&&o.group!==""?" "+o .group:"")).append($("<button/>").addClass("jGrowl-close").html(o.closeTemplate) ).append($("<div/>").addClass("jGrowl-header").html(o.header)).append($("<div/>" ).addClass("jGrowl-message").html(message)).data("jGrowl",o).addClass(o.theme).c hildren(".jGrowl-close").bind("click.jGrowl",function(){$(this).parent().trigger ("jGrowl.beforeClose");return false}).parent();$(notification).bind("mouseover.j Growl",function(){$(".jGrowl-notification",self.element).data("jGrowl.pause",tru e)}).bind("mouseout.jGrowl",function(){$(".jGrowl-notification",self.element).da ta("jGrowl.pause",false)}).bind("jGrowl.beforeOpen",function(){if(o.beforeOpen.a pply(notification,[notification,message,o,self.element])!==false){$(this).trigge r("jGrowl.open")}}).bind("jGrowl.open",function(){if(o.open.apply(notification,[ notification,message,o,self.element])!==false){if(o.glue=="after"){$(".jGrowl-no tification:last",self.element).after(notification)}else{$(".jGrowl-notification: first",self.element).before(notification)}$(this).animate(o.animateOpen,o.openDu ration,o.easing,function(){if($.support.opacity===false)this.style.removeAttribu te("filter");if($(this).data("jGrowl")!==null&&typeof $(this).data("jGrowl")!==" undefined")$(this).data("jGrowl").created=new Date;$(this).trigger("jGrowl.after Open")})}}).bind("jGrowl.afterOpen",function(){o.afterOpen.apply(notification,[n otification,message,o,self.element])}).bind("click",function(){o.click.apply(not ification,[notification,message,o,self.element])}).bind("jGrowl.beforeClose",fun ction(){if(o.beforeClose.apply(notification,[notification,message,o,self.element ])!==false)$(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){$(th is).data("jGrowl.pause",true);$(this).animate(o.animateClose,o.closeDuration,o.e asing,function(){if($.isFunction(o.close)){if(o.close.apply(notification,[notifi cation,message,o,self.element])!==false)$(this).remove()}else{$(this).remove()}} )}).trigger("jGrowl.beforeOpen");if(o.corners!==""&&$.fn.corner!==undefined)$(no tification).corner(o.corners);if($(".jGrowl-notification:parent",self.element).l ength>1&&$(".jGrowl-closer",self.element).length===0&&this.defaults.closer!==fal se){$(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.them eState+" ui-corner-all").addClass(this.defaults.theme).appendTo(self.element).an imate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind(" click.jGrowl",function(){$(this).siblings().trigger("jGrowl.beforeClose");if($.i sFunction(self.defaults.closer)){self.defaults.closer.apply($(this).parent()[0], [$(this).parent()[0]])}})}},update:function(){$(this.element).find(".jGrowl-noti fication:parent").each(function(){if($(this).data("jGrowl")!==undefined&&$(this) .data("jGrowl").created!==undefined&&$(this).data("jGrowl").created.getTime()+pa rseInt($(this).data("jGrowl").life,10)<(new Date).getTime()&&$(this).data("jGrow l").sticky!==true&&($(this).data("jGrowl.pause")===undefined||$(this).data("jGro wl.pause")!==true)){$(this).trigger("jGrowl.beforeClose")}});if(this.notificatio ns.length>0&&(this.defaults.pool===0||$(this.element).find(".jGrowl-notification :parent").length<this.defaults.pool))this.render(this.notifications.shift());if( $(this.element).find(".jGrowl-notification:parent").length<2){$(this.element).fi nd(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this .defaults.easing,function(){$(this).remove()})}},startup:function(e){this.elemen t=$(e).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this .interval=setInterval(function(){var instance=$(e).data("jGrowl.instance");if(un defined!==instance){instance.update()}},parseInt(this.defaults.check,10))},shutd own:function(){$(this.element).removeClass("jGrowl").find(".jGrowl-notification" ).trigger("jGrowl.close").parent().empty();clearInterval(this.interval)},close:f unction(){$(this.element).find(".jGrowl-notification").each(function(){$(this).t rigger("jGrowl.beforeClose")})}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaul ts})(jQuery);(function(factory){if(typeof module==="object"&&typeof module.expor ts==="object"){factory(require("jquery"),window,document)}else{factory(jQuery,wi ndow,document)}})(function($,window,document,undefined){var modals=[],getCurrent =function(){return modals.length?modals[modals.length-1]:null},selectCurrent=fun ction(){var i,selected=false;for(i=modals.length-1;i>=0;i--){if(modals[i].$block er){modals[i].$blocker.toggleClass("current",!selected).toggleClass("behind",sel ected);selected=true}}};$.modal=function(el,options){var remove,target;this.$bod y=$("body");this.options=$.extend({},$.modal.defaults,options);this.options.doFa de=!isNaN(parseInt(this.options.fadeDuration,10));this.$blocker=null;if(this.opt ions.closeExisting)while($.modal.isActive())$.modal.close();modals.push(this);if (el.is("a")){target=el.attr("href");if(/^#/.test(target)){this.$elm=$(target);if (this.$elm.length!==1)return null;this.$body.append(this.$elm);this.open()}else{ this.$elm=$("<div>");this.$body.append(this.$elm);remove=function(event,modal){m odal.elm.remove()};this.showSpinner();el.trigger($.modal.AJAX_SEND);$.get(target ).done(function(html){if(!$.modal.isActive())return;el.trigger($.modal.AJAX_SUCC ESS);var current=getCurrent();current.$elm.empty().append(html).on($.modal.CLOSE ,remove);current.hideSpinner();current.open();el.trigger($.modal.AJAX_COMPLETE)} ).fail(function(){el.trigger($.modal.AJAX_FAIL);var current=getCurrent();current .hideSpinner();modals.pop();el.trigger($.modal.AJAX_COMPLETE)})}}else{this.$elm= el;this.$body.append(this.$elm);this.open()}};$.modal.prototype={constructor:$.m odal,open:function(){var m=this;this.block();if(this.options.doFade){setTimeout( function(){m.show()},this.options.fadeDuration*this.options.fadeDelay)}else{this .show()}$(document).off("keydown.modal").on("keydown.modal",function(event){var current=getCurrent();if(event.which==27&&current.options.escapeClose)current.clo se()});if(this.options.clickClose)this.$blocker.click(function(e){if(e.target==t his)$.modal.close()})},close:function(){modals.pop();this.unblock();this.hide(); if(!$.modal.isActive())$(document).off("keydown.modal")},block:function(){this.$ elm.trigger($.modal.BEFORE_BLOCK,[this._ctx()]);this.$body.css("overflow","hidde n");this.$blocker=$('<div class="jquery-modal blocker current"></div>').appendTo (this.$body);selectCurrent();if(this.options.doFade){this.$blocker.css("opacity" ,0).animate({opacity:1},this.options.fadeDuration)}this.$elm.trigger($.modal.BLO CK,[this._ctx()])},unblock:function(now){if(!now&&this.options.doFade)this.$bloc ker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,true));else{this.$b locker.children().appendTo(this.$body);this.$blocker.remove();this.$blocker=null ;selectCurrent();if(!$.modal.isActive())this.$body.css("overflow","")}},show:fun ction(){this.$elm.trigger($.modal.BEFORE_OPEN,[this._ctx()]);if(this.options.sho wClose){this.closeButton=$('<a href="#close-modal" rel="modal:close" class="clos e-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>");this.$elm. append(this.closeButton)}this.$elm.addClass(this.options.modalClass).appendTo(th is.$blocker);if(this.options.doFade){this.$elm.css("opacity",0).show().animate({ opacity:1},this.options.fadeDuration)}else{this.$elm.show()}this.$elm.trigger($. modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger($.modal.BEFORE_CLOS E,[this._ctx()]);if(this.closeButton)this.closeButton.remove();var _this=this;if (this.options.doFade){this.$elm.fadeOut(this.options.fadeDuration,function(){_th is.$elm.trigger($.modal.AFTER_CLOSE,[_this._ctx()])})}else{this.$elm.hide(0,func tion(){_this.$elm.trigger($.modal.AFTER_CLOSE,[_this._ctx()])})}this.$elm.trigge r($.modal.CLOSE,[this._ctx()])},showSpinner:function(){if(!this.options.showSpin ner)return;this.spinner=this.spinner||$('<div class="'+this.options.modalClass+' -spinner"></div>').append(this.options.spinnerHtml);this.$body.append(this.spinn er);this.spinner.show()},hideSpinner:function(){if(this.spinner)this.spinner.rem ove()},_ctx:function(){return{elm:this.$elm,$blocker:this.$blocker,options:this. options}}};$.modal.close=function(event){if(!$.modal.isActive())return;if(event) event.preventDefault();var current=getCurrent();current.close();return current.$ elm};$.modal.isActive=function(){return modals.length>0};$.modal.getCurrent=getC urrent;$.modal.defaults={closeExisting:true,escapeClose:true,clickClose:true,clo seText:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:tru e,showClose:true,fadeDuration:null,fadeDelay:1};$.modal.BEFORE_BLOCK="modal:befo re-block";$.modal.BLOCK="modal:block";$.modal.BEFORE_OPEN="modal:before-open";$. modal.OPEN="modal:open";$.modal.BEFORE_CLOSE="modal:before-close";$.modal.CLOSE= "modal:close";$.modal.AFTER_CLOSE="modal:after-close";$.modal.AJAX_SEND="modal:a jax:send";$.modal.AJAX_SUCCESS="modal:ajax:success";$.modal.AJAX_FAIL="modal:aja x:fail";$.modal.AJAX_COMPLETE="modal:ajax:complete";$.fn.modal=function(options) {if(this.length===1){new $.modal(this,options)}return this};$(document).on("clic k.modal",'a[rel="modal:close"]',$.modal.close);$(document).on("click.modal",'a[r el="modal:open"]',function(event){event.preventDefault();$(this).modal()})});(fu nction($){var current_popup="";var PopupMenu=function(el,close_in_popupmenu){var el=$(el);var popup=this;var popup_menu=$("#"+el.attr("id")+"_popup");if(typeof close_in_popupmenu=="undefined"){var close_in_popupmenu=true}this.open=function( e){e.preventDefault();if(popup_menu.is(":visible")){popup.close();return}var off set=el.offset();offset.top+=el.outerHeight();if(el.offset().left+popup_menu.oute rWidth()>$(window).width())var adjust=popup_menu.outerWidth()-el.outerWidth();el se var adjust=0;popup_menu.css({position:"absolute",top:offset.top,left:offset.l eft-adjust});popup_menu.show();$("body, .popup_item").bind("click.close_popup",f unction(e){if(close_in_popupmenu){if($(e.target).closest("#"+el.attr("id")).leng th==0){popup.close()}}else{if($(e.target).closest("#"+el.attr("id")).length==0&& $(e.target).closest("#"+el.attr("id")+"_popup").length==0){popup.close()}}})};th is.close=function(e){popup_menu.hide()}};$.fn.popupMenu=function(close_in_popupm enu){return this.each(function(){var popup=new PopupMenu(this,close_in_popupmenu );$(this).click(popup.open)})}})(jQuery);(function(factory){var registeredInModu leLoader=false;if(typeof define==="function"&&define.amd){define(factory);regist eredInModuleLoader=true}if(typeof exports==="object"){module.exports=factory();r egisteredInModuleLoader=true}if(!registeredInModuleLoader){var OldCookies=window .Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cooki es=OldCookies;return api}}})(function(){function extend(){var i=0;var result={}; for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attribut es){result[key]=attributes[key]}}return result}function init(converter){function api(key,value,attributes){var result;if(typeof document==="undefined"){return}i f(arguments.length>1){attributes=extend({path:"/"},api.defaults,attributes);if(t ypeof attributes.expires==="number"){var expires=new Date;expires.setMillisecond s(expires.getMilliseconds()+attributes.expires*864e5);attributes.expires=expires }attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{r esult=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}i f(!converter.write){value=encodeURIComponent(String(value)).replace(/%(23|24|26| 2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)}else{value=c onverter.write(value,key)}key=encodeURIComponent(String(key));key=key.replace(/% (23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);v ar stringifiedAttributes="";for(var attributeName in attributes){if(!attributes[ attributeName]){continue}stringifiedAttributes+="; "+attributeName;if(attributes [attributeName]===true){continue}stringifiedAttributes+="="+attributes[attribute Name]}return document.cookie=key+"="+value+stringifiedAttributes}if(!key){result ={}}var cookies=document.cookie?document.cookie.split("; "):[];var rdecode=/(%[0 -9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split("=") ;var cookie=parts.slice(1).join("=");if(cookie.charAt(0)==='"'){cookie=cookie.sl ice(1,-1)}try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=conve rter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rde code,decodeURIComponent);if(this.json){try{cookie=JSON.parse(cookie)}catch(e){}} if(key===name){result=cookie;break}if(!key){result[name]=cookie}}catch(e){}}retu rn result}api.set=api;api.get=function(key){return api.call(api,key)};api.getJSO N=function(){return api.apply({json:true},[].slice.call(arguments))};api.default s={};api.remove=function(key,attributes){api(key,"",extend(attributes,{expires:- 1}))};api.withConverter=init;return api}return init(function(){})});
 End of changes. 1 change blocks. 
lines changed or deleted lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)