diff --git a/scripts/config_gen.php b/scripts/config_gen.php index a606265cde..d94cf1ab02 100644 --- a/scripts/config_gen.php +++ b/scripts/config_gen.php @@ -266,6 +266,9 @@ function combine_includes($js, $js_compress, $css, $css_compress, $settings) { if ($js) { $mods = get_modules($settings); $js_lib = file_get_contents("third_party/cash.min.js"); + if (in_array('sievefilters', $mods, true)) { + $js_lib .= file_get_contents("third_party/tingle.min.js"); + } if (in_array('desktop_notifications', $mods, true)) { $js_lib .= file_get_contents("third_party/push.min.js"); } diff --git a/third_party/tingle.min.js b/third_party/tingle.min.js new file mode 100644 index 0000000000..0b13eeac7e --- /dev/null +++ b/third_party/tingle.min.js @@ -0,0 +1 @@ +!function(t,o){"function"==typeof define&&define.amd?define(o):"object"==typeof exports?module.exports=o():t.tingle=o()}(this,function(){var o=!1;function t(t){this.opts=function(){for(var t=1;t',this.modalCloseBtnLabel=document.createElement("span"),this.modalCloseBtnLabel.classList.add("tingle-modal__closeLabel"),this.modalCloseBtnLabel.innerHTML=this.opts.closeLabel,this.modalCloseBtn.appendChild(this.modalCloseBtnIcon),this.modalCloseBtn.appendChild(this.modalCloseBtnLabel));this.modalBox=document.createElement("div"),this.modalBox.classList.add("tingle-modal-box"),this.modalBoxContent=document.createElement("div"),this.modalBoxContent.classList.add("tingle-modal-box__content"),this.modalBox.appendChild(this.modalBoxContent),-1!==this.opts.closeMethods.indexOf("button")&&this.modal.appendChild(this.modalCloseBtn);this.modal.appendChild(this.modalBox)}.call(this),function(){this._events={clickCloseBtn:this.close.bind(this),clickOverlay:function(t){var o=this.modal.offsetWidth-this.modal.clientWidth,e=t.clientX>=this.modal.offsetWidth-15,s=this.modal.scrollHeight!==this.modal.offsetHeight;if("MacIntel"===navigator.platform&&0==o&&e&&s)return;-1!==this.opts.closeMethods.indexOf("overlay")&&!function(t,o){for(;(t=t.parentElement)&&!t.classList.contains(o););return t}(t.target,"tingle-modal")&&t.clientX