diff -r 4f5d2b45814f -r 6ca0da3caede src/pyams_skin/resources/js/myams-notify.min.js --- a/src/pyams_skin/resources/js/myams-notify.min.js Mon Dec 17 10:24:14 2018 +0100 +++ b/src/pyams_skin/resources/js/myams-notify.min.js Mon Dec 17 14:33:36 2018 +0100 @@ -1,1 +1,1 @@ -!function(t,o){"use strict";t(document).ready(function(){t("body").append("
").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&&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),d&&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&&c.browser&&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").append("
").append("
")});var c,h=0,p=0,d=0,r=0,u=0,f=m.MyAMS;f.notify={messageBox:function(t,s){var o,i,e=f.browser&&f.browser.isIE8orlower(),a={title:"",content:"",status:"",NormalButton:void 0,ActiveButton:void 0,buttons:void 0,input:void 0,placeholder:"",options:void 0,sound:void 0},n=v.extend({},a,t);if(n.sound&&0===e){var l=document.createElement("audio");navigator.userAgent.match("Firefox/")?l.setAttribute("src",f.baseURL+"../sound/message.ogg"):l.setAttribute("src",f.baseURL+"../sound/message.mp3"),v.get(),l.addEventListener("load",function(){l.play()},!0),l.pause(),l.play()}p+=1,0===h&&(h=1,"
",v("body").append("
"),e&&v("#MsgBoxBack").addClass("MessageIE"));var c="",d=0,r="",u=0;if(void 0!==n.input)switch(d=1,n.input=n.input.toLowerCase(),n.input){case"text":case"password":c="

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

"+n.content+"

",o+=c,o+="
",void 0===n.buttons&&(n.buttons="[Accept]"),n.buttons=v.trim(n.buttons),n.buttons=n.buttons.split(""),void 0===n.NormalButton&&(n.NormalButton="#232323"),void 0===n.ActiveButton&&(n.ActiveButton="#ed145b"),i=0;i<=n.buttons.length-1;i++)"["===n.buttons[i]?r="":"]"===n.buttons[i]?o+=r="":r+=n.buttons[i];o+="
",o+="
",o+="
",1
",void 0===o.icon&&(o.icon="fa fa-cloud"),t+="  "+o.title+"",t+="

"+o.content+"

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

"+o.content+"

"+a+"
":"
"+o.title+"

"+o.content+"

"+a+"
",1===r)?(v("#divSmallBoxes").append(t),u=v("#smallbox"+r).height()+40):0===v(".SmallBox").size()?(v("#divSmallBoxes").append(t),u=v("#smallbox"+r).height()+40):(v("#divSmallBoxes").append(t),v("#smallbox"+r).css("top",u),u=u+v("#smallbox"+r).height()+20,v(".SmallBox").each(function(t){0===t?(v(this).css("top",20),c=v(this).height()+40,u=v(this).height()+40):(v(this).css("top",c),c=c+v(this).height()+20,u=u+v(this).height()+20)}));var n,l=v("#smallbox"+r);void 0===o.color?l.css("background-color","#004d60"):l.css("background-color",o.color),void 0!==o.colors&&0