mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
max_cols: to disable max_col option set to null instead of '-1'.
Default is null.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
extra_rows: 0,
|
||||
extra_cols: 0,
|
||||
min_cols: 1,
|
||||
max_cols: -1,
|
||||
max_cols: null,
|
||||
min_rows: 15,
|
||||
max_size_x: 6,
|
||||
autogenerate_stylesheet: true,
|
||||
@@ -2540,7 +2540,7 @@
|
||||
|
||||
this.cols = Math.max(min_cols, cols, this.options.min_cols);
|
||||
|
||||
if (max_cols > -1 && max_cols >= min_cols && max_cols < this.cols) {
|
||||
if (max_cols && max_cols >= min_cols && max_cols < this.cols) {
|
||||
this.cols = max_cols;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user