Skip to content

Commit 9b69fd8

Browse files
committed
Build
1 parent 1d4b9e6 commit 9b69fd8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/BootstrapInputAddons/widget/BootstrapInputAddons.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ define([
258258

259259
var label = this.labelCaption;
260260
if (this.showNegativeAsPositive){
261-
label = this.negativeLabelCaption;
261+
var value = this._contextObj.get(this.fieldAttribute);
262+
if (value < 0) {
263+
label = this.negativeLabelCaption;
264+
}
262265
}
263266

264267
var result = label.replace(expression, replaceFunction);
15 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)