src/pyams_skin/resources/js/myams-browser.min.js
changeset 489 63ea9a94bd47
parent 486 48b7cea0d903
child 494 6ca0da3caede
--- a/src/pyams_skin/resources/js/myams-browser.min.js	Wed Dec 12 21:16:29 2018 +0100
+++ b/src/pyams_skin/resources/js/myams-browser.min.js	Thu Dec 13 14:28:29 2018 +0100
@@ -1,1 +1,1 @@
-!function(e,o){var r=o.MyAMS;r.browser={getInternetExplorerVersion:function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var o=navigator.userAgent;null!==new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(o)&&(e=parseFloat(RegExp.$1))}return e},checkVersion:function(){var e="You're not using Windows Internet Explorer.",r=this.getInternetExplorerVersion();r>-1&&(e=r>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),o.alert&&o.alert(e)},isIE8orlower:function(){var e="0",o=this.getInternetExplorerVersion();return o>-1&&(e=o>=9?0:1),e},copyToClipboard:function(n){function t(n){var t=!1;if(window.clipboardData&&window.clipboardData.setData)t=clipboardData.setData("Text",n);else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var a=e("<textarea>");a.val(n),a.css("position","fixed"),a.appendTo(e("body")),a.get(0).select();try{document.execCommand("copy"),t=!0}catch(e){console&&console.warn&&console.warn("Copy to clipboard failed.",e)}finally{a.remove()}}t?r.skin.smallBox("success",{title:n.length>1?r.i18n.CLIPBOARD_TEXT_COPY_OK:r.i18n.CLIPBOARD_CHARACTER_COPY_OK,icon:"fa fa-fw fa-info-circle font-xs align-top margin-top-10",timeout:3e3}):o.prompt&&o.prompt(r.i18n.CLIPBOARD_COPY,n)}if(void 0===n)return function(){var o=e(this),r=o.text();o.parents(".btn-group").removeClass("open"),t(r)};t(n)}}}(jQuery,this);
+!function(e,o){var n=o.MyAMS;n.browser={getInternetExplorerVersion:function(){var e=-1;if("Microsoft Internet Explorer"===navigator.appName){var o=navigator.userAgent;null!==new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(o)&&(e=parseFloat(RegExp.$1))}return e},checkVersion:function(){var e="You're not using Windows Internet Explorer.",n=this.getInternetExplorerVersion();n>-1&&(e=n>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),o.alert&&o.alert(e)},isIE8orlower:function(){var e="0",o=this.getInternetExplorerVersion();return o>-1&&(e=o>=9?0:1),e},copyToClipboard:function(r){function t(r){var t=!1;if(window.clipboardData&&window.clipboardData.setData)t=clipboardData.setData("Text",r);else if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var a=e("<textarea>");a.val(r),a.css("position","fixed"),a.appendTo(e("body")),a.get(0).select();try{document.execCommand("copy"),t=!0}catch(e){console&&console.warn&&console.warn("Copy to clipboard failed.",e)}finally{a.remove()}}t?n.skin&&n.skin.smallBox("success",{title:r.length>1?n.i18n.CLIPBOARD_TEXT_COPY_OK:n.i18n.CLIPBOARD_CHARACTER_COPY_OK,icon:"fa fa-fw fa-info-circle font-xs align-top margin-top-10",timeout:3e3}):o.prompt&&o.prompt(n.i18n.CLIPBOARD_COPY,r)}if(void 0===r)return function(){var o=e(this),n=o.text();o.parents(".btn-group").removeClass("open"),t(n)};t(r)}}}(jQuery,this);