Skip to content

Commit

Permalink
Merge pull request #130 from kbroderick/master
Browse files Browse the repository at this point in the history
Address #129 -- README instructions for Gemfile
  • Loading branch information
leithhobson authored May 28, 2019
2 parents 7cf095d + 41fa954 commit d3ea15f
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 24 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ and run bundle install.
Add this line to app/assets/stylesheets/application.css

``` css
*= require jquery.gridster
*= require jquery.dsmorse-gridster.min
```
Note that the non-minified versions is `jquery.gridster`, should that be preferred.


Add this line to app/assets/javascripts/application.js

``` javascript
//= require jquery.gridster
//= require jquery.dsmorse-gridster.min
```

Note that `jquery.dsmorse-gridster`, `jquery.dsmorse-gridster.with-extras`, and `jquery.dsmorse-gridster.with-extras.min` are also available if you want a non-minified version or gridster with extras.

## Contributing to this project

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Expand All @@ -84,4 +88,4 @@ Distributed under the MIT license.
## Whodunit

Gridster is built by [Ducksboard](http://ducksboard.com/) with the help of all
these [wonderful people](https://github.com/ducksboard/gridster.js/graphs/contributors).
these [wonderful people](https://github.com/dsmorse/gridster.js/graphs/contributors).
1 change: 1 addition & 0 deletions dist/jquery.collision.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/jquery.coords.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/jquery.draggable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions dist/jquery.gridster.js → dist/jquery.dsmorse-gridster.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! gridster.js - v0.7.0 - 2017-03-27
/*! gridster.js - v0.8.0 - 2019-01-10
* https://dsmorse.github.io/gridster.js/
* Copyright (c) 2017 ducksboard; Licensed MIT */
* Copyright (c) 2019 ducksboard; Licensed MIT */

;(function(root, factory) {
'use strict';
Expand Down Expand Up @@ -2275,7 +2275,7 @@
container_width: this.container_width,
move_element: false,
resize: true,
limit: { width: this.options.max_cols !== Infinity || this.limit.width, height: this.options.max_rows !== Infinity || this.limit.height },
limit: { width: this.options.max_cols !== Infinity || this.options.limit.width, height: this.options.max_rows !== Infinity || this.options.limit.height },
scroll_container: this.options.scroll_container,
start: $.proxy(this.on_start_resize, this),
stop: $.proxy(function (event, ui) {
Expand Down Expand Up @@ -3265,9 +3265,7 @@
*/
fn.is_empty = function (col, row) {
if (typeof this.gridmap[col] !== 'undefined') {
if (typeof this.gridmap[col][row] !== 'undefined' &&
this.gridmap[col][row] === false
) {
if (!this.gridmap[col][row]) {
return true;
}
return false;
Expand Down Expand Up @@ -5031,7 +5029,7 @@
};

fn.get_num_widgets = function () {
return this.$widgets.size();
return this.$widgets.length;
};

/**
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/jquery.dsmorse-gridster.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! gridster.js - v0.7.0 - 2017-03-27
/*! gridster.js - v0.8.0 - 2019-01-10
* https://dsmorse.github.io/gridster.js/
* Copyright (c) 2017 ducksboard; Licensed MIT */
* Copyright (c) 2019 ducksboard; Licensed MIT */

;(function(root, factory) {
'use strict';
Expand Down Expand Up @@ -2275,7 +2275,7 @@
container_width: this.container_width,
move_element: false,
resize: true,
limit: { width: this.options.max_cols !== Infinity || this.limit.width, height: this.options.max_rows !== Infinity || this.limit.height },
limit: { width: this.options.max_cols !== Infinity || this.options.limit.width, height: this.options.max_rows !== Infinity || this.options.limit.height },
scroll_container: this.options.scroll_container,
start: $.proxy(this.on_start_resize, this),
stop: $.proxy(function (event, ui) {
Expand Down Expand Up @@ -3265,9 +3265,7 @@
*/
fn.is_empty = function (col, row) {
if (typeof this.gridmap[col] !== 'undefined') {
if (typeof this.gridmap[col][row] !== 'undefined' &&
this.gridmap[col][row] === false
) {
if (!this.gridmap[col][row]) {
return true;
}
return false;
Expand Down Expand Up @@ -5031,7 +5029,7 @@
};

fn.get_num_widgets = function () {
return this.$widgets.size();
return this.$widgets.length;
};

/**
Expand Down
2 changes: 2 additions & 0 deletions dist/jquery.dsmorse-gridster.with-extras.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/jquery.gridster.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/jquery.gridster.with-extras.min.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/gridster.js-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Gridster
module Rails
VERSION = "0.7.0"
VERSION = "0.8.0"
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dsmorse-gridster",
"title": "gridster.js",
"description": "a drag-and-drop multi-column jQuery grid plugin",
"version": "0.7.0",
"version": "0.8.0",
"homepage": "https://dsmorse.github.io/gridster.js/",
"author": {
"name": "ducksboard"
Expand Down

0 comments on commit d3ea15f

Please sign in to comment.