Commit 0d826876 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

In the init() function, only show the 'no results' message if the page

is already loaded. Also, at that point, remove the loading message
parent 71587b59
......@@ -49,9 +49,15 @@ function TableRenderer(target, source, columns, options) {
self.assertPager(self.offset, self.limit, self.count);
}
if (typeof(self.emptycontent) != 'undefined') {
self.emptycontent = DIV(null,self.emptycontent);
insertSiblingNodesBefore(self.table, self.emptycontent);
if (TableRendererPageLoaded) {
if (typeof(self.emptycontent) != 'undefined') {
self.emptycontent = DIV(null,self.emptycontent);
insertSiblingNodesBefore(self.table, self.emptycontent);
}
if (self.loadingMessage) {
removeElement(self.loadingMessage);
self.loadingMessage = null;
}
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment