1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #1487: no gen ticks (#4864)

Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
This commit is contained in:
Jorge Miguel Lobo Escalona 2020-06-02 13:27:25 +02:00 committed by GitHub
parent a78f105056
commit c7e6fc9b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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))

View File

@ -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);