diff --git a/apps/common/main/lib/component/RadioBox.js b/apps/common/main/lib/component/RadioBox.js index 8b7ff4b6f1..3b698ddfe8 100644 --- a/apps/common/main/lib/component/RadioBox.js +++ b/apps/common/main/lib/component/RadioBox.js @@ -71,7 +71,7 @@ define([ disabled : false, rendered : false, - template : _.template(''), + template : _.template(''), initialize : function(options) { Common.UI.BaseView.prototype.initialize.call(this, options); @@ -101,6 +101,7 @@ define([ })); this.$radio = el.find('input[type=button]'); + this.$label = el.find('label'); this.rendered = true; return this; @@ -145,6 +146,10 @@ define([ getValue: function() { return this.$radio.hasClass('checked'); + }, + + setCaption: function(text) { + this.$label.find('span').text(text); } }); }); \ No newline at end of file