X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fhazelnut%2Fhazelnut.js;h=2f7ec5ea1bb18333804716d2fadbdc4ca1256c17;hb=0c6de66411d990fcd28278ec396456203acef805;hp=596062c2b8a36978ef5b5c9dd49ac8de929dbb4b;hpb=336354f96751fee9b20ec3b4ada0d027c9642ac7;p=myslice.git diff --git a/plugins/hazelnut/hazelnut.js b/plugins/hazelnut/hazelnut.js index 596062c2..2f7ec5ea 100644 --- a/plugins/hazelnut/hazelnut.js +++ b/plugins/hazelnut/hazelnut.js @@ -127,7 +127,8 @@ // http://datatables.net/forums/discussion/5331/datatables-warning-...-requested-unknown-parameter/p2 aoColumnDefs: [{sDefaultContent: '',aTargets: [ '_all' ]}], bRetrieve: true, - sScrollX: '100%', /* Horizontal scrolling */ + // xxx this one causes tables in a 'tabs' that are not exposed at the time this is run to show up empty + // sScrollX: '100%', /* Horizontal scrolling */ bProcessing: true, /* Loading */ fnRowCallback: function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { $(nRow).attr('id', get_value(aData[3])); @@ -329,6 +330,7 @@ }); + this.table.fnClearTable(); if (debug) console.log("hazelnut.update_plugin: total of " + newlines.length + " rows"); this.table.fnAddData(newlines);