Bug with removing and adding items from listview.
This commit is contained in:
parent
8eb5acdbb8
commit
24f1b6d1ab
|
@ -72,11 +72,11 @@ define([
|
||||||
model: record
|
model: record
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!this.innerEl) {
|
if (!this.innerEl)
|
||||||
this.innerEl = $(this.el).find('.inner');
|
this.innerEl = $(this.el).find('.inner');
|
||||||
this.innerEl.find('.empty-text').remove();
|
|
||||||
}
|
|
||||||
if (view && this.innerEl) {
|
if (view && this.innerEl) {
|
||||||
|
this.innerEl.find('.empty-text').remove();
|
||||||
if (this.options.simpleAddMode) {
|
if (this.options.simpleAddMode) {
|
||||||
this.innerEl.append(view.render().el)
|
this.innerEl.append(view.render().el)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue