@@ -6,19 +6,19 @@ This is [gridster.js](http://gridster.net) GEMified for the Rails >= 3.1 asset p
6
6
cd gridster-rails
7
7
mkdir -p vendor/assets/javascripts
8
8
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
11
11
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
13
13
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
15
15
git add .
16
16
git commit -am "initial gridster-rails"
17
17
git remote add origin [email protected] :vanetten/gridster-rails.git
18
18
19
19
* modify ** lib/gridster-rails/version.rb** to match gridster.js version
20
20
21
- VERSION = "0.1.0.1 "
21
+ VERSION = "0.1.5 "
22
22
23
23
* modify ** lib/gridster-rails.rb** to subclass Rails::Engine
24
24
@@ -84,6 +84,27 @@ dynamically add and remove elements from the grid.
84
84
85
85
More at [ http://gridster.net/ ] ( http://gridster.net/ ) .
86
86
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
+
87
108
License
88
109
=======
89
110
@@ -93,3 +114,65 @@ Whodunit
93
114
========
94
115
95
116
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
+
0 commit comments