2020-10-09 22:29:56 +02:00
|
|
|
// Generated by CoffeeScript 1.12.8
|
2017-04-06 22:37:36 +02:00
|
|
|
(function() {
|
|
|
|
$(document).ready(function() {
|
2019-11-15 16:10:37 +01:00
|
|
|
return $.ajax((window.location.href.match(/\/upgradesession/) ? window.location.href : portal) + '?kerberos=1', {
|
2017-04-06 22:37:36 +02:00
|
|
|
dataType: 'json',
|
|
|
|
statusCode: {
|
|
|
|
401: function() {
|
2017-04-06 22:37:38 +02:00
|
|
|
return $('#lform').submit();
|
2017-04-06 22:37:36 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
success: function(data) {
|
2019-11-15 16:10:37 +01:00
|
|
|
if (window.location.href.match(/\/upgradesession/)) {
|
|
|
|
return document.location = portal;
|
|
|
|
} else {
|
|
|
|
return $('#lform').submit();
|
|
|
|
}
|
2017-04-06 22:37:36 +02:00
|
|
|
},
|
|
|
|
error: function() {
|
2017-04-06 22:37:38 +02:00
|
|
|
return $('#lform').submit();
|
2017-04-06 22:37:36 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}).call(this);
|