X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fhazelnut%2Fhazelnut.js;h=e32e50d36d68c6c759ccffcf16372bdc1a47b97e;hb=5263bf0a91b2e3b54e07deb3d3ebeabd37de123a;hp=192ab0543a187ba1faf0526152ea399d3c99c446;hpb=0d61ae092a128d92545788f4ee5ec56d47f8c535;p=unfold.git diff --git a/plugins/hazelnut/hazelnut.js b/plugins/hazelnut/hazelnut.js index 192ab054..e32e50d3 100644 --- a/plugins/hazelnut/hazelnut.js +++ b/plugins/hazelnut/hazelnut.js @@ -271,7 +271,10 @@ if (rows.length==0) { if (debug) messages.debug("Empty result on hazelnut " + domid); - this.table.html(unfold.warning("Empty result")); + var placeholder=$(this.table).find("td.dataTables_empty"); + console.log("placeholder "+placeholder); + if (placeholder.length==1) placeholder.html(unfold.warning("Empty result")); + else this.table.html(unfold.warning("Empty result")); return; } else if (typeof(rows[0].error) != 'undefined') { // we now should have another means to report errors that this inline/embedded hack