OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/openid_connect/app/views/session/_warn_logout.js.erb

16 lines
458 B

// window.parent == OpenProject window
var op = window.parent;
var $ = op.jQuery
var back_url = encodeURIComponent(op.document.location.href);
$.ajax({
url: "/session/logout_warning?back_url=" + back_url,
cache: false,
success: function(html) {
$("#logout-warning").remove();
$(html).prependTo("body").hide().slideDown();
$('html, body').animate({
scrollTop: $("#logout-warning").offset().top
}, 1000);
}
});