Pārlūkot izejas kodu

HUE-3960 [editor] Removed performance degrading CSS

Enrico Berti 9 gadi atpakaļ
vecāks
revīzija
47ea04f

BIN
desktop/core/src/desktop/static/desktop/art/stripedbackground.png


+ 1 - 13
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -632,20 +632,8 @@ table.display td.center {
   padding-left: 4px!important;
 }
 
-@keyframes barberpole {
-  from { background-position: 0 0; }
-  to   { background-position: 60px 30px; }
-}
-
 .table-huedatatable td.stripe {
-  background: repeating-linear-gradient(
-      -55deg,
-      #FFF,
-      #FFF 10px,
-      #f9f9f9 10px,
-      #f9f9f9 20px
-    );
-  animation: barberpole 0.5s linear infinite;
+  background: url('../art/stripedbackground.png');
 }
 
 

+ 3 - 3
desktop/core/src/desktop/static/desktop/js/jquery.huedatatable.js

@@ -65,7 +65,7 @@
             html += '<tr class="ht-visible-row ht-visible-row-' + i + '"><td>' + data[i][0] + '</td><td colspan="' + (aoColumns.length - 1) + '" class="stripe"></td></tr>';
           }
           appendable.html(html);
-          if (aoColumns.length < 500) {
+          if (aoColumns.length < 500 && $t.data('plugin_jHueTableExtender')) {
             $t.data('plugin_jHueTableExtender').drawFirstColumn();
           }
         }
@@ -76,7 +76,7 @@
               html += '<tr class="ht-visible-row ht-visible-row-' + i + '"><td>' + data[i][0] + '</td><td colspan="' + (aoColumns.length - 1) + '" class="stripe"></td></tr>';
             }
             appendable.html(appendable.html() + html);
-            if (aoColumns.length < 500) {
+            if (aoColumns.length < 500 && $t.data('plugin_jHueTableExtender')) {
               $t.data('plugin_jHueTableExtender').drawFirstColumn();
             }
           }
@@ -98,7 +98,7 @@
           appendable.children().eq(i).html(html);
         }
 
-        if (aoColumns.length < 500) {
+        if (aoColumns.length < 500 && $t.data('plugin_jHueTableExtender')) {
           $t.data('plugin_jHueTableExtender').drawHeader();
           $t.data('plugin_jHueTableExtender').drawLockedRows();
         }