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);
}
$.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);
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;