فهرست منبع

[beeswax][impala] Disable DataTable plugin for modal samples of tables with more than 1000 columns

Enrico Berti 10 سال پیش
والد
کامیت
12fd5a7
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      apps/metastore/src/metastore/templates/sample.mako

+ 2 - 0
apps/metastore/src/metastore/templates/sample.mako

@@ -63,6 +63,7 @@ from django.utils.translation import ugettext as _
   }
 </style>
 
+% if len(sample.cols()) < 1000:
 <script type="text/javascript" charset="utf-8">
   $(document).ready(function () {
     $(".sampleTable").dataTable({
@@ -77,3 +78,4 @@ from django.utils.translation import ugettext as _
     });
   });
 </script>
+% endif