X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=to-be-integrated%2Fplugins%2Fcode_editor%2Fstatic%2Fjs%2Fcode_editor.js;h=4811101856041f40accfd9393c79eab41b6c02eb;hb=c025814eadebf386f556f9af571d3f04e2124a80;hp=664bbdc7aae14db31d9d697afff1d7865c9f3c78;hpb=641432a9373ea5466ab8fd1cc7114950660b609f;p=unfold.git diff --git a/to-be-integrated/plugins/code_editor/static/js/code_editor.js b/to-be-integrated/plugins/code_editor/static/js/code_editor.js index 664bbdc7..48111018 100644 --- a/to-be-integrated/plugins/code_editor/static/js/code_editor.js +++ b/to-be-integrated/plugins/code_editor/static/js/code_editor.js @@ -78,13 +78,13 @@ return this.each(function() { var $this = $(this); - var hazelnut = $this.data('Manifold'); + var querytable = $this.data('Manifold'); // Unbind all events using namespacing $(window).unbind('Manifold'); // Remove associated data - hazelnut.remove(); + querytable.remove(); $this.removeData('Manifold'); }); }, // destroy @@ -93,16 +93,16 @@ var $this=$(this); // xxx wtf. why [1] ? would expect 0... if (debug) - messages.debug("Hitting suspicious line in hazelnut.show"); + messages.debug("Hitting suspicious line in querytable.show"); var oTable = $($('.dataTable', $this)[1]).dataTable(); oTable.fnAdjustColumnSizing() /* Refresh dataTabeles if click on the menu to display it : fix dataTables 1.9.x Bug */ $(this).each(function(i,elt) { if (jQuery(elt).hasClass('dataTables')) { - var myDiv=jQuery('#hazelnut-' + this.id).parent(); + var myDiv=jQuery('#querytable-' + this.id).parent(); if(myDiv.height()==0) { - var oTable=$('#hazelnut-' + this.id).dataTable(); + var oTable=$('#querytable-' + this.id).dataTable(); oTable.fnDraw(); } }