From 0a3315d3cb2d490afdb49417a5c4e30cf77ae373 Mon Sep 17 00:00:00 2001 From: vieron Date: Thu, 13 Jun 2013 15:22:27 +0200 Subject: [PATCH] max_cols: to disable max_col option set to `null` instead of '-1'. Default is null. --- src/jquery.gridster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 53d10a0281..3687d37d48 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -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; }