benjamin-vauchel / SuperBoxSelect

SuperBoxSelect is a TV for MODx Revolution 2.1.x that provides a multi-select box for related pages. Inspired by Resource List MODx TV and SuperBoxSelect ExtJS Plugin.
http://www.omycode.fr/modx-extras/superboxselect.html
9 stars 13 forks source link

After reset Form, EmptyText automatically cleaning #7

Open gobron opened 11 years ago

gobron commented 11 years ago

After reset Form, EmptyText automatically cleaning.

How i can Preservation the emptytext?

gobron commented 11 years ago

I replace this code

reset : function(){ this.killItems(); Ext.ux.form.SuperBoxSelect.superclass.reset.call(this); this.addedRecords = []; this.autoSize().setRawValue(''); },

TO

reset : function(){ this.killItems(); Ext.ux.form.SuperBoxSelect.superclass.reset.call(this); this.addedRecords = []; this.autoSize().setRawValue(''); this.setRawValue(this.emptyText); this.el.addClass(this.emptyClass); },

this is a correctly?