mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
parent
a78f105056
commit
c7e6fc9b32
@ -89,7 +89,8 @@ define(function(require) {
|
||||
initial: that.diskSize,
|
||||
name: "resize",
|
||||
max_value: "",
|
||||
type: "range"
|
||||
type: "range",
|
||||
no_ticks: true
|
||||
}
|
||||
//$( ".diskSlider", context).html(RangeSlider.html(attrs));
|
||||
UserInputs.insertAttributeInputMB(attrs, $(".diskSlider", context))
|
||||
|
@ -46,7 +46,7 @@ define(function(require) {
|
||||
function _html(opts) {
|
||||
opts['sliderId'] = sliderId;
|
||||
opts['ticks'] = [];
|
||||
if (opts.tick_size !== undefined){
|
||||
if (opts.tick_size !== undefined && !opts.no_ticks){
|
||||
var tick_val = opts.tick_size * Math.ceil(opts.min / opts.tick_size);
|
||||
while (tick_val <= opts.max){
|
||||
opts['ticks'].push(tick_val);
|
||||
|
Loading…
x
Reference in New Issue
Block a user