Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Wegmüller2018-10-03 10:34:01 +0000
committerAndré Wegmüller2018-10-03 12:41:44 +0000
commitf2c73616d65e46300ce58d51701d9a103663a050 (patch)
treef2f60cc3787e297d448c7403ed1fb971b2864643
parenta4e253fa938218dac898d87f0fe3291b16d24cdf (diff)
downloadorg.eclipse.scout.rt-f2c73616d65e46300ce58d51701d9a103663a050.tar.gz
org.eclipse.scout.rt-f2c73616d65e46300ce58d51701d9a103663a050.tar.xz
org.eclipse.scout.rt-f2c73616d65e46300ce58d51701d9a103663a050.zip
Picker: removed selectButtonByValue - does the same as setValue
-rw-r--r--org.eclipse.scout.rt.ui.html.test/src/test/js/scout/form/fields/radiobutton/RadioButtonGroupSpec.js2
-rw-r--r--org.eclipse.scout.rt.ui.html/src/main/js/scout/form/fields/radiobutton/RadioButtonGroup.js6
2 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.scout.rt.ui.html.test/src/test/js/scout/form/fields/radiobutton/RadioButtonGroupSpec.js b/org.eclipse.scout.rt.ui.html.test/src/test/js/scout/form/fields/radiobutton/RadioButtonGroupSpec.js
index eb2e0571fb..52786cc08e 100644
--- a/org.eclipse.scout.rt.ui.html.test/src/test/js/scout/form/fields/radiobutton/RadioButtonGroupSpec.js
+++ b/org.eclipse.scout.rt.ui.html.test/src/test/js/scout/form/fields/radiobutton/RadioButtonGroupSpec.js
@@ -170,7 +170,7 @@ describe("RadioButtonGroup", function() {
expect(radioButtonGroup.value).toBe(1);
// select by value
- radioButtonGroup.selectButtonByValue(2);
+ radioButtonGroup.setValue(2);
expect(radioButtonGroup.value).toBe(2);
});
diff --git a/org.eclipse.scout.rt.ui.html/src/main/js/scout/form/fields/radiobutton/RadioButtonGroup.js b/org.eclipse.scout.rt.ui.html/src/main/js/scout/form/fields/radiobutton/RadioButtonGroup.js
index 68eaa2e3e6..76a870845b 100644
--- a/org.eclipse.scout.rt.ui.html/src/main/js/scout/form/fields/radiobutton/RadioButtonGroup.js
+++ b/org.eclipse.scout.rt.ui.html/src/main/js/scout/form/fields/radiobutton/RadioButtonGroup.js
@@ -282,7 +282,7 @@ scout.RadioButtonGroup.prototype._valueChanged = function() {
// Don't select button during initialization if value is null to not override selected state of a button
if (this.value !== null || this.initialized) {
- this.selectButtonByValue(this.value);
+ this.selectButton(this.getButtonForRadioValue(this.value));
}
};
@@ -300,10 +300,6 @@ scout.RadioButtonGroup.prototype.selectButtonByIndex = function(index) {
}
};
-scout.RadioButtonGroup.prototype.selectButtonByValue = function(value) {
- this.selectButton(this.getButtonForRadioValue(value));
-};
-
scout.RadioButtonGroup.prototype.selectButton = function(radioButton) {
if (this.selectedButton === radioButton) {
// Already selected

Back to the top