From f8da0fb273f319eb77f57ffe2abd12806a3e24c6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 6 Sep 2019 14:34:35 +0300 Subject: [PATCH] [Common] RadioBox: change caption --- apps/common/main/lib/component/RadioBox.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/RadioBox.js b/apps/common/main/lib/component/RadioBox.js index 8b7ff4b6f..3b698ddfe 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