silverstripe-framework/admin/client/dist/js/LeftAndMain.Ping.js
2016-10-14 15:33:07 +13:00

7 lines
605 B
JavaScript

webpackJsonp([1],[function(n,e,t){"use strict"
function i(n){return n&&n.__esModule?n:{"default":n}}var s=t(1),a=i(s)
a["default"].entwine("ss.ping",function(n){n(".cms-container").entwine({PingIntervalSeconds:300,onadd:function e(){this._setupPinging(),this._super()},_setupPinging:function t(){var e=function t(n,e){(n.status>400||0==n.responseText)&&(window.open("Security/login")?alert("Please log in and then try again"):alert("Please enable pop-ups for this site"))
}
setInterval(function(){n.ajax({url:"Security/ping",global:!1,type:"POST",complete:e})},1e3*this.getPingIntervalSeconds())}})})}])