Skip to content

Commit bff2dc7

Browse files
committed
updated to dustmoo
1 parent 1463521 commit bff2dc7

File tree

4 files changed

+528
-60
lines changed

4 files changed

+528
-60
lines changed

README.md

Lines changed: 88 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ This is [gridster.js](http://gridster.net) GEMified for the Rails >= 3.1 asset p
66
cd gridster-rails
77
mkdir -p vendor/assets/javascripts
88
mkdir -p vendor/assets/stylesheets
9-
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.js -o vendor/assets/javascripts/jquery.gridster.js
10-
curl https://raw.github.com/ducksboard/gridster.js/master/dist/jquery.gridster.css -o vendor/assets/stylesheets/jquery.gridster.css
9+
curl https://raw.github.com/dustmoo/gridster.js/master/dist/jquery.gridster.js -o vendor/assets/javascripts/jquery.gridster.js
10+
curl https://raw.github.com/dustmoo/gridster.js/master/dist/jquery.gridster.css -o vendor/assets/stylesheets/jquery.gridster.css
1111
echo "" >> README.md; echo "# gridster.js appended README #" >> README.md; echo "" >> README.md
12-
curl https://raw.github.com/ducksboard/gridster.js/master/README.md >> README.md
12+
curl https://raw.github.com/dustmoo/gridster.js/master/README.md >> README.md
1313
echo "" >> LICENSE; echo "# gridster.js appended LICENSE #" >> LICENSE; echo "" >> LICENSE
14-
curl https://raw.github.com/ducksboard/gridster.js/master/LICENSE >> LICENSE
14+
curl https://raw.github.com/dustmoo/gridster.js/master/LICENSE >> LICENSE
1515
git add .
1616
git commit -am "initial gridster-rails"
1717
git remote add origin [email protected]:vanetten/gridster-rails.git
1818

1919
* modify **lib/gridster-rails/version.rb** to match gridster.js version
2020

21-
VERSION = "0.1.0.1"
21+
VERSION = "0.1.5"
2222

2323
* modify **lib/gridster-rails.rb** to subclass Rails::Engine
2424

@@ -84,6 +84,27 @@ dynamically add and remove elements from the grid.
8484

8585
More at [http://gridster.net/](http://gridster.net/).
8686

87+
Public Service Announcement from Dustin Moore (dustmoo)
88+
=======================================================
89+
90+
Gridster is not currently being actively maintained by
91+
[Ducksboard](http://ducksboard.com/).
92+
93+
I and others have been given access to the repo to help
94+
maintain and address issues.
95+
96+
I have created a fork of gridster that supports more advanced
97+
features, like widget-swapping and static widgets.
98+
99+
It can be found here: https://github.com/dustmoo/gridster.js
100+
101+
Currently the code-base is different and I don't have time to
102+
reconcile the fork with this repo.
103+
104+
If anyone would like to help me improve my fork and reconcile
105+
it with the main library I would be happy for the help.
106+
107+
87108
License
88109
=======
89110

@@ -93,3 +114,65 @@ Whodunit
93114
========
94115

95116
Gridster is built by [Ducksboard](http://ducksboard.com/).
117+
118+
dustmoo Modifications
119+
===========
120+
121+
Changelog 2013-04-3
122+
123+
Fork now handles standard behavior properly with swap allowing larger widgets to shift down.
124+
125+
Changelog 2013-04-2
126+
127+
Added Demo to Repository.
128+
129+
Changelog 2013-02-27
130+
131+
Added "Static widget support" Static Items default to the "static" class.
132+
133+
You can customize this class by using the code below:
134+
135+
$.gridster({
136+
static_class: 'custom_class',
137+
draggable: {
138+
items: ".gs_w:not(.custom_class)"
139+
}
140+
});
141+
142+
I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too.
143+
This version is much more reliable in swapping space with widgets.
144+
145+
There are also new options for Maximum Rows and Maximum Columns:
146+
147+
$.gridster({
148+
max_rows: map_rows,
149+
max_cols: map_cols,
150+
shift_larger_widgets_down: false
151+
});
152+
153+
Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.
154+
155+
156+
Changelog 2012-11-26
157+
158+
Reworked swapping functionality to better handle large to small widget handling.
159+
160+
---
161+
162+
Widgets of smaller or equal size to the dragged widget (player)
163+
will swap places with the original widget.
164+
165+
This causes tiles to swap left and right as well as up and down.
166+
167+
By default smaller players will shift larger widgets down.
168+
169+
I have added an option to prevent this behavior:
170+
171+
$.gridster({
172+
shift_larger_widgets_down: false
173+
});
174+
175+
By setting shift_larger_widgets_down to false, smaller widgets will not displace larger ones.
176+
177+
178+

lib/gridster-rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Gridster
22
module Rails
3-
VERSION = "0.1.0.1"
3+
VERSION = "0.1.5"
44
end
55
end

0 commit comments

Comments
 (0)