diff -r 27ed26ca8623 -r 02a40997d8cb src/ztfy/myams/resources/js/myams-notify.min.js --- a/src/ztfy/myams/resources/js/myams-notify.min.js Fri May 12 14:03:02 2017 +0200 +++ b/src/ztfy/myams/resources/js/myams-notify.min.js Thu Oct 26 14:45:34 2017 +0200 @@ -1,1 +1,1 @@ -(function(c,d){c(document).ready(function(){c("body").append("
").append("
").append("
")});function f(){c(".divMessageBox").fadeOut(300,function(){c(this).remove()});c(".LoadingBoxContainer").fadeOut(300,function(){c(this).remove()})}var a=0,b=0,h,j=0,g=0,i=0;var e=d.MyAMS;e.notify={messageBox:function(w,v){var s,n,l=e.browser.isIE8orlower();var o={title:"",content:"",NormalButton:undefined,ActiveButton:undefined,buttons:undefined,input:undefined,placeholder:"",options:undefined,sound:undefined};var m=c.extend({},o,w);if(m.sound&&(l===0)){var u=document.createElement("audio");if(navigator.userAgent.match("Firefox/")){u.setAttribute("src",e.baseURL+"../sound/message.ogg")}else{u.setAttribute("src",e.baseURL+"../sound/message.mp3")}c.get();u.addEventListener("load",function(){u.play()},true);u.pause();u.play()}b=b+1;if(a===0){a=1;s="
";c("body").append(s);if(e.browser.isIE8orlower()===1){c("#MsgBoxBack").addClass("MessageIE")}}var r;var p="";var t=0;var q="";var k=0;if(m.input!==undefined){t=1;m.input=m.input.toLowerCase();switch(m.input){case"text":p="

";break;case"password":p="

";break;case"select":if(m.options===undefined){if(d.alert){d.alert("For this type of input, the options parameter is required.")}}else{p=""}break;default:if(d.alert){d.alert("That type of input is not handled yet")}}}n="
";n+="
";n+=""+m.title+"";n+="

"+m.content+"

";n+=p;n+="
";if(m.buttons===undefined){m.buttons="[Accept]"}m.buttons=c.trim(m.buttons);m.buttons=m.buttons.split("");if(m.NormalButton===undefined){m.NormalButton="#232323"}if(m.ActiveButton===undefined){m.ActiveButton="#ed145b"}for(r=0;r<=m.buttons.length-1;r++){if(m.buttons[r]==="["){q=""}else{if(m.buttons[r]==="]"){k=k+1;q="";n+=q}else{q+=m.buttons[r]}}}n+="
";n+="
";n+="
";if(b>1){c(".MessageBoxContainer").hide();c(".MessageBoxContainer").css("z-index",99999)}c(".MessageBox").append(n);if(t===1){c("#txt"+b).focus()}c(".botTempo").hover(function(){var x=c(this).attr("id")},function(){var x=c(this).attr("id")});c(".botTempo").click(function(){var B=c(this).attr("id");var A=B.substr(B.indexOf("-")+1);var y=c.trim(c(this).text());if(t===1){if(typeof v==="function"){var z=A.replace("Msg","");var x=c("#txt"+z).val();if(v){v(y,x)}}}else{if(typeof v==="function"){if(v){v(y)}}}c("#"+A).addClass("animated fadeOut fast");b=b-1;if(b===0){c("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue(function(){a=0;c(this).remove()})}})},bigBox:function(k,r){var n,o;k=c.extend({title:"",content:"",icon:undefined,number:undefined,color:undefined,sound:true,timeout:undefined,colortime:1500,colors:undefined},k);if(k.sound===true){if(e.browser.isIE8orlower()===0){var q=document.createElement("audio");if(navigator.userAgent.match("Firefox/")){q.setAttribute("src",e.baseURL+"../snd/bigbox.ogg")}else{q.setAttribute("src",e.baseURL+"../snd/bigbox.mp3")}c.get();q.addEventListener("load",function(){q.play()},true);q.pause();q.play()}}j=j+1;n="
";if(k.icon===undefined){k.icon="fa fa-cloud"}n+="  "+k.title+"";n+="

"+k.content+"

";n+="
";if(k.number!==undefined){n+=k.number}n+="
";n+="
";c("#divBigBoxes").append(n);if(k.color===undefined){k.color="#004d60"}c("#bigBox"+j).css("background-color",k.color);c("#divMiniIcons").append("
");c("#miniIcon"+j).bind("click",function(){var w=c(this).attr("id");var v=w.replace("miniIcon","bigBox");var u=w.replace("miniIcon","bigBoxColor");c(".cajita").each(function(y){var x=c(this).attr("id");var z=x.replace("miniIcon","bigBox");c("#"+z).css("z-index",9998)});c("#"+v).css("z-index",9999);c("#"+u).removeClass("animated fadeIn").delay(1).queue(function(){c(this).show();c(this).addClass("animated fadeIn");c(this).clearQueue()})});var l=c("#btnClose"+j);var p=c("#bigBox"+j);var t=c("#miniIcon"+j);var s;if(k.colors!==undefined&&k.colors.length>0){l.attr("colorcount","0");s=setInterval(function(){var u=l.attr("colorcount");l.animate({backgroundColor:k.colors[u].color});p.animate({backgroundColor:k.colors[u].color});t.animate({backgroundColor:k.colors[u].color});if(u"}else{m="
"}if(l.icon===undefined){n="
"+l.title+"

"+l.content+"

"+m+"
"}else{n="
"+l.title+"

"+l.content+"

"+m+"
"}if(g===1){c("#divSmallBoxes").append(n);i=c("#smallbox"+g).height()+40}else{var q=c(".SmallBox").size();if(q===0){c("#divSmallBoxes").append(n);i=c("#smallbox"+g).height()+40}else{c("#divSmallBoxes").append(n);c("#smallbox"+g).css("top",i);i=i+c("#smallbox"+g).height()+20;c(".SmallBox").each(function(u){if(u===0){c(this).css("top",20);h=c(this).height()+40;i=c(this).height()+40}else{c(this).css("top",h);h=h+c(this).height()+20;i=i+c(this).height()+20}})}}var t=c("#smallbox"+g);if(l.color===undefined){t.css("background-color","#004d60")}else{t.css("background-color",l.color)}var s;if(l.colors!==undefined&&l.colors.length>0){t.attr("colorcount","0");s=setInterval(function(){var u=t.attr("colorcount");t.animate({backgroundColor:l.colors[u].color});if(u").append("
").append("
")});var i,e=0,a=0,s=0,n=0,l=0,c=o.MyAMS;c.notify={messageBox:function(i,s){var n,l,d=c.browser.isIE8orlower(),r={title:"",content:"",status:"",NormalButton:void 0,ActiveButton:void 0,buttons:void 0,input:void 0,placeholder:"",options:void 0,sound:void 0},u=t.extend({},r,i);if(u.sound&&0===d){var v=document.createElement("audio");navigator.userAgent.match("Firefox/")?v.setAttribute("src",c.baseURL+"../sound/message.ogg"):v.setAttribute("src",c.baseURL+"../sound/message.mp3"),t.get(),v.addEventListener("load",function(){v.play()},!0),v.pause(),v.play()}a+=1,0===e&&(e=1,n="
",t("body").append(n),1===c.browser.isIE8orlower()&&t("#MsgBoxBack").addClass("MessageIE"));var m,h="",p=0,f="",b=0;if(void 0!==u.input)switch(p=1,u.input=u.input.toLowerCase(),u.input){case"text":case"password":h="

";break;case"select":if(void 0===u.options)o.alert&&o.alert("For this type of input, the options parameter is required.");else{for(h=""}break;default:o.alert&&o.alert("That type of input is not handled yet")}for(l="
",l+="
",l+=""+u.title+"",l+="

"+u.content+"

",l+=h,l+="
",void 0===u.buttons&&(u.buttons="[Accept]"),u.buttons=t.trim(u.buttons),u.buttons=u.buttons.split(""),void 0===u.NormalButton&&(u.NormalButton="#232323"),void 0===u.ActiveButton&&(u.ActiveButton="#ed145b"),m=0;m<=u.buttons.length-1;m++)"["===u.buttons[m]?f="":"]"===u.buttons[m]?l+=f="":f+=u.buttons[m];l+="
",l+="
",l+="
",a>1&&(t(".MessageBoxContainer").hide(),t(".MessageBoxContainer").css("z-index",99999)),t(".MessageBox").append(l),1===p&&t("#txt"+a).focus(),t(".botTempo").hover(function(){t(this).attr("id")},function(){t(this).attr("id")}),t(".botTempo").click(function(){var o=t(this).attr("id"),i=o.substr(o.indexOf("-")+1),n=t.trim(t(this).text());if(1===p){if("function"==typeof s){var l=i.replace("Msg",""),c=t("#txt"+l).val();s&&s(n,c)}}else"function"==typeof s&&s&&s(n);t("#"+i).addClass("animated fadeOut fast"),0===(a-=1)&&t("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue(function(){e=0,t(this).remove()})})},bigBox:function(o,i){var e;if(!0===(o=t.extend({title:"",content:"",icon:void 0,number:void 0,color:void 0,sound:!0,timeout:void 0,colortime:1500,colors:void 0},o)).sound&&0===c.browser.isIE8orlower()){var a=document.createElement("audio");navigator.userAgent.match("Firefox/")?a.setAttribute("src",c.baseURL+"../snd/bigbox.ogg"):a.setAttribute("src",c.baseURL+"../snd/bigbox.mp3"),t.get(),a.addEventListener("load",function(){a.play()},!0),a.pause(),a.play()}e="
",void 0===o.icon&&(o.icon="fa fa-cloud"),e+="  "+o.title+"",e+="

"+o.content+"

",e+="
",void 0!==o.number&&(e+=o.number),e+="
",e+="
",t("#divBigBoxes").append(e),void 0===o.color&&(o.color="#004d60"),t("#bigBox"+s).css("background-color",o.color),t("#divMiniIcons").append("
"),t("#miniIcon"+s).bind("click",function(){var o=t(this).attr("id"),i=o.replace("miniIcon","bigBox"),e=o.replace("miniIcon","bigBoxColor");t(".cajita").each(function(o){var i=t(this).attr("id").replace("miniIcon","bigBox");t("#"+i).css("z-index",9998)}),t("#"+i).css("z-index",9999),t("#"+e).removeClass("animated fadeIn").delay(1).queue(function(){t(this).show(),t(this).addClass("animated fadeIn"),t(this).clearQueue()})});var n,l=t("#btnClose"+s),d=t("#bigBox"+s),r=t("#miniIcon"+s);if(void 0!==o.colors&&o.colors.length>0&&(l.attr("colorcount","0"),n=setInterval(function(){var t=l.attr("colorcount");l.animate({backgroundColor:o.colors[t].color}),d.animate({backgroundColor:o.colors[t].color}),r.animate({backgroundColor:o.colors[t].color}),t":"
",a=void 0===o.icon?"
"+o.title+"

"+o.content+"

"+d+"
":"
"+o.title+"

"+o.content+"

"+d+"
",1===n?(t("#divSmallBoxes").append(a),l=t("#smallbox"+n).height()+40):0===t(".SmallBox").size()?(t("#divSmallBoxes").append(a),l=t("#smallbox"+n).height()+40):(t("#divSmallBoxes").append(a),t("#smallbox"+n).css("top",l),l=l+t("#smallbox"+n).height()+20,t(".SmallBox").each(function(o){0===o?(t(this).css("top",20),i=t(this).height()+40,l=t(this).height()+40):(t(this).css("top",i),i=i+t(this).height()+20,l=l+t(this).height()+20)}));var u=t("#smallbox"+n);void 0===o.color?u.css("background-color","#004d60"):u.css("background-color",o.color);var v;void 0!==o.colors&&o.colors.length>0&&(u.attr("colorcount","0"),v=setInterval(function(){var t=u.attr("colorcount");u.animate({backgroundColor:o.colors[t].color}),t