silverstripe-framework/admin/client/dist/js/LeftAndMain.Ping.js
Will Rossiter ddc9a9c6d6 Enhancement Fix up buttons within gridfield search
Enhancement Fix up batch actions button
2017-01-10 10:53:10 +13:00

7 lines
605 B
JavaScript

webpackJsonp([0],[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())}})})}])