Browse Source

HUE-3674 [core] Prevent idle of idle session timeout blurring

Enrico Berti 9 years ago
parent
commit
b932158a14

+ 1 - 0
desktop/core/src/desktop/static/desktop/css/login.css

@@ -76,6 +76,7 @@
   min-height: 44px;
   font-weight: normal;
   text-shadow: none;
+  margin-left: 0;
 }
 
 .login-header {

+ 2 - 1
desktop/core/src/desktop/templates/common_footer.mako

@@ -54,8 +54,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
     $(document).ajaxComplete(function (event, xhr, settings) {
       if (xhr.responseText === '/* login required */' && !isLoginRequired) {
         isLoginRequired = true;
+        $('.blurred').removeClass('blurred');
         $('body').children(':not(#login-modal)').addClass('blurred');
-        if ($('#login-modal').length > 0){
+        if ($('#login-modal').length > 0 && $('#login-modal').is(':hidden')){
           $('#login-modal').modal('show');
           window.setTimeout(function () {
             $('.jHueNotify').remove();