Browse Source

[editor] Remove Kinetic from the result tables for better scrolling performances

Enrico Berti 10 năm trước cách đây
mục cha
commit
4af3bf9

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 2
desktop/core/src/desktop/static/desktop/ext/js/jquery/plugins/jquery.kinetic.min.js


+ 0 - 29
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -39,7 +39,6 @@ from desktop.views import _ko
 
 <script src="${ static('desktop/ext/js/markdown.min.js') }"></script>
 <script src="${ static('desktop/ext/js/jquery/plugins/jquery.hotkeys.js') }"></script>
-<script src="${ static('desktop/ext/js/jquery/plugins/jquery.kinetic.min.js') }"></script>
 
 <script src="${ static('desktop/ext/js/bootstrap-editable.min.js') }" type="text/javascript" charset="utf-8"></script>
 <script src="${ static('desktop/ext/chosen/chosen.jquery.min.js') }" type="text/javascript" charset="utf-8"></script>
@@ -1319,34 +1318,6 @@ ${ require.config() }
           parentId: 'snippet_' + snippet.id(),
           clonedContainerPosition: "absolute"
         });
-
-        var originialAttachListeners = $.Kinetic.prototype._attachListeners;
-        $.Kinetic.prototype._attachListeners = function($el, listeners) {
-          var kinetic = this;
-          var altDown = false;
-          $(window).bind("keydown", "alt", function (e) {
-            kinetic.$el.css('cursor', 'move');
-            altDown = true;
-          });
-          $(window).bind("keyup", "alt", function (e) {
-            altDown = false;
-            kinetic.$el.css('cursor', '');
-          });
-          var altDownListener = function (listener) {
-            return function(e) {
-              if (altDown) {
-                listener.apply(this, arguments);
-              }
-            }
-          }
-          listeners.events.inputDown = altDownListener(listeners.events.inputDown);
-          listeners.events.selectStart = altDownListener(listeners.events.selectStart);
-          originialAttachListeners.apply(this, arguments)
-        }
-
-        $('.dataTables_wrapper').kinetic({
-          cursor: ''
-        });
       },
       "aoColumnDefs": [
         {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác