From: edward Date: Tue, 9 Jan 2018 05:56:56 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=f66d83783b12de21a85393e258257d217b1c1019 roojs-ui.js roojs-ui-debug.js --- diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 8b977c32d9..93a85126ed 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -754,6 +754,17 @@ Roo.extend(Roo.data.Store, Roo.util.Observable, { this.totalLength = Math.max(t, this.data.length+r.length); this.add(r); } + + if(this.parent && !Roo.isIOS && !this.useNativeIOS && this.parent.emptyTitle.length) { + + var e = new Roo.data.Record({}); + + e.set(this.parent.displayField, this.parent.emptyTitle); + e.set(this.parent.valueField, ''); + + this.insert(0, e); + } + this.fireEvent("load", this, r, options, o); if(options.callback){ options.callback.call(options.scope || this, r, options, true); diff --git a/roojs-ui.js b/roojs-ui.js index 63d6844754..13bf2c6983 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -22,19 +22,20 @@ for(var i=0,B=A.length;iv2?1:(v1v2?1:(v1