mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Merge remote-tracking branch 'rept/gridster.js/addition_problem_add_faux_rows'
* rept/gridster.js/addition_problem_add_faux_rows: Also added parseInt to the add_faux_cols method Also added parseInt to the add_faux_cols method Wrong addition solved in add_faux_rows by adding parseInt
This commit is contained in:
Vendored
+2
-2
@@ -4259,7 +4259,7 @@
|
||||
rows = window.parseInt( rows, 10 );
|
||||
|
||||
var actual_rows = this.rows;
|
||||
var max_rows = actual_rows + (rows || 1);
|
||||
var max_rows = actual_rows + parseInt(rows || 1);
|
||||
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
@@ -4287,7 +4287,7 @@
|
||||
cols = window.parseInt( cols, 10 );
|
||||
|
||||
var actual_cols = this.cols;
|
||||
var max_cols = actual_cols + (cols || 1);
|
||||
var max_cols = actual_cols + parseInt(cols || 1);
|
||||
max_cols = Math.min(max_cols, this.options.max_cols);
|
||||
|
||||
for (var c = actual_cols + 1; c <= max_cols; c++) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -4259,7 +4259,7 @@
|
||||
rows = window.parseInt( rows, 10 );
|
||||
|
||||
var actual_rows = this.rows;
|
||||
var max_rows = actual_rows + (rows || 1);
|
||||
var max_rows = actual_rows + parseInt(rows || 1);
|
||||
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
@@ -4287,7 +4287,7 @@
|
||||
cols = window.parseInt( cols, 10 );
|
||||
|
||||
var actual_cols = this.cols;
|
||||
var max_cols = actual_cols + (cols || 1);
|
||||
var max_cols = actual_cols + parseInt(cols || 1);
|
||||
max_cols = Math.min(max_cols, this.options.max_cols);
|
||||
|
||||
for (var c = actual_cols + 1; c <= max_cols; c++) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -3382,7 +3382,7 @@
|
||||
rows = window.parseInt( rows, 10 );
|
||||
|
||||
var actual_rows = this.rows;
|
||||
var max_rows = actual_rows + (rows || 1);
|
||||
var max_rows = actual_rows + parseInt(rows || 1);
|
||||
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
@@ -3410,7 +3410,7 @@
|
||||
cols = window.parseInt( cols, 10 );
|
||||
|
||||
var actual_cols = this.cols;
|
||||
var max_cols = actual_cols + (cols || 1);
|
||||
var max_cols = actual_cols + parseInt(cols || 1);
|
||||
max_cols = Math.min(max_cols, this.options.max_cols);
|
||||
|
||||
for (var c = actual_cols + 1; c <= max_cols; c++) {
|
||||
|
||||
Reference in New Issue
Block a user