fix empty message in tree

pull/282/head
nightwing 2015-11-17 01:39:26 +04:00
rodzic a4adbd78b3
commit 294bbf6934
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -51,7 +51,7 @@ var Cells = function(parentEl) {
this.$renderRow(html, datarow, vsize, hsize, row);
}
if (firstRow === 0 && lastRow === 0) {
if (firstRow <= 0 && lastRow <= 0) {
this.renderPlaceHolder(provider, html, config);
}
@ -130,7 +130,7 @@ var Cells = function(parentEl) {
provider.renderRow(row, html, config);
}
if (firstRow === 0 && lastRow === 0) {
if (firstRow <= 0 && lastRow <= 0) {
this.renderPlaceHolder(provider, html, config);
}
@ -187,7 +187,7 @@ var Cells = function(parentEl) {
} else if (provider.getEmptyMessage) {
html.push(
"<div class='message empty'>",
provider.getEmptyMessage(),
escapeHTML(provider.getEmptyMessage()),
"</div>"
);
}