Explorar el Código

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

Enrico Berti hace 9 años
padre
commit
4af3bf9

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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": [
         {

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio