various cleanup
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 17 Dec 2013 19:39:55 +0000 (20:39 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 17 Dec 2013 19:39:55 +0000 (20:39 +0100)
manifold/static/js/buffer.js
plugins/querygrid/static/js/querygrid.js
plugins/queryupdater/static/js/queryupdater.js

index 46bac84..c33f34b 100644 (file)
@@ -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);
                     }
index f54d143..8f77eaa 100644 (file)
@@ -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);
 
index e87b54f..abcd2d7 100644 (file)
 
         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);
         },
 
         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;