From ffc68fa6f93c8acfeb7b4a84a8dbf0ff69af9409 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 17 Dec 2013 20:39:55 +0100 Subject: [PATCH] various cleanup --- manifold/static/js/buffer.js | 2 +- plugins/querygrid/static/js/querygrid.js | 11 ----------- plugins/queryupdater/static/js/queryupdater.js | 4 ++-- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/manifold/static/js/buffer.js b/manifold/static/js/buffer.js index 46bac84a..c33f34b8 100644 --- a/manifold/static/js/buffer.js +++ b/manifold/static/js/buffer.js @@ -20,7 +20,7 @@ var Buffer = Class.extend({ this._timerid = setInterval( (function(self) { //Self-executing func which takes 'this' as self return function() { //Return a function in the context of 'self' - console.log("running callback"); + messages.debug("running callback"); clearInterval(self._timerid); self._callback.apply(self._callback_this); } diff --git a/plugins/querygrid/static/js/querygrid.js b/plugins/querygrid/static/js/querygrid.js index f54d1437..8f77eaa6 100644 --- a/plugins/querygrid/static/js/querygrid.js +++ b/plugins/querygrid/static/js/querygrid.js @@ -491,16 +491,5 @@ window.dv=this.slick_dataview; $.plugin('QueryGrid', QueryGrid); -// /* define the 'dom-checkbox' type for sorting in datatables -// http://datatables.net/examples/plug-ins/dom_sort.html -// using trial and error I found that the actual column number -// was in fact given as a third argument, and not second -// as the various online resources had it - go figure */ -// $.fn.dataTableExt.afnSortData['dom-checkbox'] = function ( oSettings, _, iColumn ) { -// return $.map( oSettings.oApi._fnGetTrNodes(oSettings), function (tr, i) { -// return result=$('td:eq('+iColumn+') input', tr).prop('checked') ? '1' : '0'; -// } ); -// } - })(jQuery); diff --git a/plugins/queryupdater/static/js/queryupdater.js b/plugins/queryupdater/static/js/queryupdater.js index e87b54fa..abcd2d7f 100644 --- a/plugins/queryupdater/static/js/queryupdater.js +++ b/plugins/queryupdater/static/js/queryupdater.js @@ -316,7 +316,7 @@ on_field_state_changed: function(result) { - console.log(result) + messages.debug(result) /* this.set_state(result.request, result.key, result.value, result.status); */ this.set_state(result); }, @@ -350,7 +350,7 @@ update_resources: function(resources, change) { - console.log("update_resources"); + messages.debug("update_resources"); var my_oTable = this.table.dataTable(); var prev_resources = this.current_resources; -- 2.43.0