silverstripe-framework/admin/client/dist/js/LeftAndMain.Ping.js

2 lines
862 B
JavaScript
Raw Normal View History

2016-09-14 14:07:13 +02:00
!function(e){function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var r=t(1),o=i(r);o["default"].entwine("ss.ping",function(e){e(".cms-container").entwine({PingIntervalSeconds:300,onadd:function n(){this._setupPinging(),this._super()},_setupPinging:function t(){var n=function t(e,n){(e.status>400||0==e.responseText)&&(window.open("Security/login")?alert("Please log in and then try again"):alert("Please enable pop-ups for this site"))};setInterval(function(){e.ajax({url:"Security/ping",global:!1,type:"POST",complete:n})},1e3*this.getPingIntervalSeconds())}})})},function(e,n){e.exports=jQuery}]);
//# sourceMappingURL=LeftAndMain.Ping.js.map