فهرست منبع

HUE-717 [core] Repetitive HTTP requests on each page

The check_config_ajax call is now made just for superusers
Enrico Berti 13 سال پیش
والد
کامیت
bb60a98
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      desktop/core/src/desktop/templates/common_header.mako

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

@@ -99,7 +99,9 @@ from django.utils.translation import ugettext as _
       }).change(function(){
         $(this).closest("form").submit();
       });
+      % if user.is_superuser:
       $("#checkConfig").load("/debug/check_config_ajax");
+      % endif
       $(".navbar .nav-tooltip").tooltip({
         delay:0,
         placement:'bottom'});