Skip to content

Commit

Permalink
webui: remove max value for cluster resource
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed May 21, 2018
1 parent dca06a3 commit 4d083d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webui/lib/xtemplate.lib.php
Expand Up @@ -730,7 +730,7 @@ function form_add_number($label, $name, $value, $min = 0, $max = 999999, $step =
}

function form_add_number_pure($name, $value, $min = 0, $max = 999999, $step = 1, $unit = '') {
$this->table_td('<input type="number" name="'.$name.'" value="'.h($value).'" min="'.$min.'" max="'.$max.'" step="'.$step.'">&nbsp;'.$unit);
$this->table_td('<input type="number" name="'.$name.'" value="'.h($value).'" min="'.$min.'" '.($max > 0 ? 'max="'.$max.'"' : '').' step="'.$step.'">&nbsp;'.$unit);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion webui/pages/page_adminm.php
Expand Up @@ -513,7 +513,7 @@ function cluster_resource_edit_form() {
'value',
$r->value,
0,
10 * 1024 * 1024,
0,
$r->cluster_resource->stepsize,
unit_for_cluster_resource($r->cluster_resource->name)
);
Expand Down

0 comments on commit 4d083d8

Please sign in to comment.