2020-01-15 22:12:02 +01:00
|
|
|
// Generated by CoffeeScript 1.12.7
|
2019-02-02 21:31:37 +01:00
|
|
|
(function() {
|
2019-03-19 05:56:36 +01:00
|
|
|
var _krbJsAlreadySent;
|
|
|
|
|
|
|
|
if (_krbJsAlreadySent === null) {
|
|
|
|
_krbJsAlreadySent = false;
|
|
|
|
}
|
|
|
|
|
2019-02-02 21:31:37 +01:00
|
|
|
$(document).ready(function() {
|
2019-03-19 05:56:36 +01:00
|
|
|
if (!_krbJsAlreadySent) {
|
|
|
|
_krbJsAlreadySent = 1;
|
|
|
|
console.log('Send Kerberos Ajax request');
|
|
|
|
return $.ajax(portal + '?kerberos=1', {
|
|
|
|
dataType: 'json',
|
|
|
|
statusCode: {
|
|
|
|
401: function() {
|
|
|
|
return $('#lformKerberos').submit();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
success: function(data) {
|
|
|
|
return $('#lformKerberos').submit();
|
|
|
|
},
|
|
|
|
error: function() {
|
2019-02-02 21:31:37 +01:00
|
|
|
return $('#lformKerberos').submit();
|
|
|
|
}
|
2019-03-19 05:56:36 +01:00
|
|
|
});
|
|
|
|
} else {
|
|
|
|
return console.log('Kerberos Ajax request already sent');
|
|
|
|
}
|
2019-02-02 21:31:37 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
}).call(this);
|