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:
David Morse
2015-04-07 22:19:48 -06:00
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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++) {
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -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++) {