X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fform%2FCheckbox.js;h=634c5101a8397fdeaa575e24f46debcd48a9f576;hb=ace3bd1cd175b8285e20933c004e7c5aa826028a;hp=85903b80e0a84cf488df57b480ad87111d7c8dad;hpb=6e978dd6486772e0ca04d2b87a3a06d06925614e;p=roojs1 diff --git a/Roo/form/Checkbox.js b/Roo/form/Checkbox.js index 85903b80e0..634c5101a8 100644 --- a/Roo/form/Checkbox.js +++ b/Roo/form/Checkbox.js @@ -190,7 +190,9 @@ Roo.extend(Roo.form.Checkbox, Roo.form.Field, { this.fireEvent('check', this, state); } this.inSetChecked = true; - this.el.dom.value = state ? this.inputValue : this.valueOff; + + this.el.dom.value = state ? this.inputValue : this.valueOff; + this.inSetChecked = false; }, @@ -212,6 +214,11 @@ Roo.extend(Roo.form.Checkbox, Roo.form.Field, { } Roo.form.Checkbox.superclass.onDestroy.call(this); + }, + + setBoxLabel : function(str) + { + this.wrap.select('.x-form-cb-label', true).first().dom.innerHTML = str; } }); \ No newline at end of file