浏览代码

[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