X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Flists%2Fstatic%2Fjs%2Fsimplelist.js;h=2bed5b438bcbf547c061bbe16a4b243184dd4b71;hb=c1c3a70229279cdd36c1a641525ff3ccdb32fa5f;hp=a8f90b94eecf28ca9d98912688b321d2de662d3b;hpb=dc832ad1a26a47483f8297678a9417640b7c9925;p=myslice.git diff --git a/plugins/lists/static/js/simplelist.js b/plugins/lists/static/js/simplelist.js index a8f90b94..2bed5b43 100644 --- a/plugins/lists/static/js/simplelist.js +++ b/plugins/lists/static/js/simplelist.js @@ -19,7 +19,7 @@ on_query_in_progress: function() { messages.debug("on_query_in_progress"); - this.spin(); + this.spin(true); }, on_query_done: function() { @@ -110,7 +110,8 @@ if (debug) messages.debug('datatables_update_table ' + rows.length + " rows"); $table.dataTable().fnClearTable(); // the lambda here returns a [[]] because $.map is kind of broken; as per the doc: - // The function can return any value to add to the array. A returned array will be flattened into the resulting array. + // The function can return any value to add to the array. + // A returned array will be flattened into the resulting array. // this is wrong indeed so let's work around that var self=this; $table.dataTable().fnAddData( $.map(rows, function (row) { return [[ self._cell (key,row[key]) ]] }) );