22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
// Generated by CoffeeScript 1.12.8
|
|
(function() {
|
|
$(document).ready(function() {
|
|
return $.ajax((window.location.href.match(/\/(upgrade|renew)session/) ? window.location.href : portal) + '?kerberos=1', {
|
|
dataType: 'json',
|
|
statusCode: {
|
|
401: function() {
|
|
return $('#lform').submit();
|
|
}
|
|
},
|
|
success: function(data) {
|
|
$('input[name="upgrading"]').remove();
|
|
return $('#lform').submit();
|
|
},
|
|
error: function() {
|
|
return $('#lform').submit();
|
|
}
|
|
});
|
|
});
|
|
|
|
}).call(this);
|