git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer display for empty results
[unfold.git]
/
plugins
/
hazelnut
/
hazelnut.js
diff --git
a/plugins/hazelnut/hazelnut.js
b/plugins/hazelnut/hazelnut.js
index
192ab05
..
e32e50d
100644
(file)
--- 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);
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
return;
} else if (typeof(rows[0].error) != 'undefined') {
// we now should have another means to report errors that this inline/embedded hack