diff --git a/src/sunstone/public/app/utils/user-inputs.js b/src/sunstone/public/app/utils/user-inputs.js
index 2feb6592b3..a70672f5ec 100644
--- a/src/sunstone/public/app/utils/user-inputs.js
+++ b/src/sunstone/public/app/utils/user-inputs.js
@@ -718,26 +718,30 @@ define(function(require) {
if (attr.type == "range"){
attr.tick_size = 1024;
}
-
- var selectInput = inputUnit
- ? "
"+
- "" +
- "
" : "MB";
+ var select = '';
+ var selectInput = inputUnit? '': 'disabled';
+ if(attr && attr.visor){
+ var select = "";
+ }
+
div.html(
- ""+
+ ""+
+ select+
+ "
"+
+ "");
+ _setupAttributeInputMB(div);
}
- function _setupAttributeInputMB(context, inputUnit) {
+ function _setupAttributeInputMB(context) {
var base = 1024;
var baseCal = 1;
var unit = "MB";
@@ -769,7 +773,7 @@ define(function(require) {
$("input, select", contextElement).val(valueInMB);
valueInUnit = valueInMB / baseCal;
}
- $("input.visor", contextElement).val(inputUnit ? valueInUnit : valueInMB);
+ $("input.visor", contextElement).val(valueInUnit);
var contextUnit = contextElement.siblings(".input-group-button");
$(".mb_input_unit", contextUnit).val(unit).trigger("change");
}
diff --git a/src/sunstone/public/scss/app.scss b/src/sunstone/public/scss/app.scss
index 7c45b94b09..1372fa957f 100644
--- a/src/sunstone/public/scss/app.scss
+++ b/src/sunstone/public/scss/app.scss
@@ -247,9 +247,8 @@ meter {
width: 4em;
}
-span.mb_input_unit {
- width: auto;
- margin-left: 0.5em;
+select.mb_input_unit {
+ margin-bottom: 0px;
}
.superHide{