소스 검색

[core] Revert login required global callback on ajax success

Enrico Berti 10 년 전
부모
커밋
3bc097ec4a
1개의 변경된 파일0개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 7
      desktop/core/src/desktop/templates/common_header.mako

+ 0 - 7
desktop/core/src/desktop/templates/common_header.mako

@@ -206,13 +206,6 @@ from django.utils.translation import ugettext as _
         $.ajaxSetup({ cache: false });
       }
 
-      // global catch for ajax calls after the user has logged out
-      $( document ).ajaxSuccess(function( event, xhr, settings, data) {
-        if (data === '/* login required */'){
-          location.href='/accounts/login/?next=' + encodeURIComponent(window.location.pathname + window.location.search)
-        }
-      });
-
       // prevents framebusting and clickjacking
       if (self == top){
         $("body").css({