Explorar el Código

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

Enrico Berti hace 10 años
padre
commit
12fd5a7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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