gridster.js-rails 0.6.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +337 -0
- data/LICENSE +19 -0
- data/README.md +73 -0
- data/bower.json +31 -0
- data/demos/SwapDrop.html +56 -0
- data/demos/adding-widgets-dynamically.html +54 -0
- data/demos/assets/css/demo.css +94 -0
- data/demos/assets/img/sprite.png +0 -0
- data/demos/assets/js/plugins.js +25 -0
- data/demos/custom-drag-handle.html +96 -0
- data/demos/dynamic-grid-width.html +52 -0
- data/demos/expandable-widgets.html +64 -0
- data/demos/grid-from-serialize.html +63 -0
- data/demos/index.html +39 -0
- data/demos/jquery.gridster.demo2.html +59 -0
- data/demos/multiple-grids.html +71 -0
- data/demos/resize-limits.html +76 -0
- data/demos/resize.html +65 -0
- data/demos/responsive.html +96 -0
- data/demos/serialize.html +89 -0
- data/demos/sticky-postion.html +50 -0
- data/demos/using-drag-callbacks.html +75 -0
- data/demos/using-resize-callbacks.html +78 -0
- data/lib/gridster.js-rails/version.rb +5 -0
- data/package.json +46 -0
- data/vendor/assets/javascripts/jquery.gridster.js +5066 -0
- data/vendor/assets/javascripts/jquery.gridster.min.js +2 -0
- data/vendor/assets/javascripts/jquery.gridster.with-extras.js +5218 -0
- data/vendor/assets/javascripts/jquery.gridster.with-extras.min.js +2 -0
- data/vendor/assets/stylesheets/jquery.gridster.css +128 -0
- data/vendor/assets/stylesheets/jquery.gridster.min.css +2 -0
- metadata +105 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f7a1ad11ce80d31d9ac5b77940f3e9843b9e919f
|
4
|
+
data.tar.gz: 5112efe68c19326ad8a4cbf75c1bdaa01d8835f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3d2dcfbdc50dae454ab914938201fb94943639e42d633c4e70c4f4008c316acbf9367754153c39dc06a7bf79a74b5d343085b563a7d4797eaf9271f015a15e25
|
7
|
+
data.tar.gz: cbd63d2568da043d460b5201f41968d5308315f8ffb72fd91bb90c8f3192a47b2fc4eea8923187472c1f4ffc31d01d4e081f92dc4f1cddfd2afc7291ec852b5c
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,337 @@
|
|
1
|
+
<a name="v0.6.9"></a>
|
2
|
+
### v0.6.9 (2015-05-27)
|
3
|
+
|
4
|
+
<a name="v0.6.8"></a>
|
5
|
+
### v0.6.8 (2015-04-28)
|
6
|
+
|
7
|
+
|
8
|
+
#### Bug Fixes
|
9
|
+
|
10
|
+
* **gridster:**
|
11
|
+
* responsive width now resizes based off wrapper not window ([e69c3e8f](http://github.com/dsmorse/gridster.js/commit/e69c3e8f64aa4557ef032e4d0d8185e83b1aed21))
|
12
|
+
* ensure coords instances are destroyed on widgets ([576b5ae3](http://github.com/dsmorse/gridster.js/commit/576b5ae3f0461b048d8ff9463509b860ffa8b194))
|
13
|
+
* `resize_widget` also accepts HTMLElements ([cda560f4](http://github.com/dsmorse/gridster.js/commit/cda560f4f3ca616d03d1e3230cd2ef4e69876d9c))
|
14
|
+
* changed "instanceof jQuery" to "instanceof $" ([c6226306](http://github.com/dsmorse/gridster.js/commit/c6226306c2ce9aa7d45d774d7de19088acba0c66))
|
15
|
+
* wrong addition solved in add_faux_rows/cols by adding parseInt ([d9471752](http://github.com/dsmorse/gridster.js/commit/d947175257d686801154a403016fd2ec7e6d40c2), closes [#426](http://github.com/dsmorse/gridster.js/issues/426), [#425](http://github.com/dsmorse/gridster.js/issues/425))
|
16
|
+
* preventing gridster from adding extra resize handles ([9d077da6](http://github.com/dsmorse/gridster.js/commit/9d077da676826606243c2552dc9997c492687203))
|
17
|
+
* destroy resize_api ([b1629326](http://github.com/dsmorse/gridster.js/commit/b16293268c6aa4be2ba0c8fb1b9806e590227606), closes [#473](http://github.com/dsmorse/gridster.js/issues/473))
|
18
|
+
* ensure widget dimensions and coords are always ints ([595a94f1](http://github.com/dsmorse/gridster.js/commit/595a94f1bdfaa4905ff51d9044e74105c81e6ff3))
|
19
|
+
|
20
|
+
|
21
|
+
#### Features
|
22
|
+
|
23
|
+
* **draggable:** autoscrolling ([d3f25f3f](http://github.com/dsmorse/gridster.js/commit/d3f25f3fbbcc738d8b3702d122533e64f37acd29))
|
24
|
+
* **gridster:**
|
25
|
+
* add config to set custom show/hide widget methods ([7de5bbab](http://github.com/dsmorse/gridster.js/commit/7de5bbabc0a01e8188a56881782dc74d6bf111d3))
|
26
|
+
* browserify compatibility ([43148b87](http://github.com/dsmorse/gridster.js/commit/43148b87e523352a7f9d01479c6fed3e87f46ba0))
|
27
|
+
* Common.js support ([446852a2](http://github.com/dsmorse/gridster.js/commit/446852a260aab2e7caf772a62fbde8b518c38816), closes [#434](http://github.com/dsmorse/gridster.js/issues/434))
|
28
|
+
* **gridster.css:** remove possible default pading ([2002c455](http://github.com/dsmorse/gridster.js/commit/2002c455957016cb441a317dbbb6e5f6662cb35a))
|
29
|
+
|
30
|
+
<a name="v0.6.7"></a>
|
31
|
+
### v0.6.7 (2015-04-16)
|
32
|
+
|
33
|
+
<a name="v0.6.6"></a>
|
34
|
+
### v0.6.6 (2015-04-08)
|
35
|
+
|
36
|
+
<a name="v0.6.5"></a>
|
37
|
+
### v0.6.5 (2015-04-06)
|
38
|
+
|
39
|
+
|
40
|
+
#### Bug Fixes
|
41
|
+
|
42
|
+
* **gridster:** fixed bugs in centering_widgets (widgets were getting smushed when being resized ([86053f8b](http://github.com/DecksterTeam/gridster.js/commit/86053f8be3d73a9db3d7eabc595324123dbcff13))
|
43
|
+
|
44
|
+
<a name="v0.6.4"></a>
|
45
|
+
### v0.6.4 (2015-03-19)
|
46
|
+
|
47
|
+
|
48
|
+
#### Bug Fixes
|
49
|
+
|
50
|
+
* **gridster:**
|
51
|
+
* added ability to center widgets in grid
|
52
|
+
|
53
|
+
<a name="v0.6.3"></a>
|
54
|
+
### v0.6.3 (2015-03-06)
|
55
|
+
|
56
|
+
|
57
|
+
#### Bug Fixes
|
58
|
+
|
59
|
+
* **gridster:**
|
60
|
+
* fixing resize limits when in fixed width mode feature(gridster): added fix_to_co ([6bb47dc1](http://github.com/DecksterTeam/gridster.js/commit/6bb47dc1ce36aef670b2acb7c244ec5f4ea440e0))
|
61
|
+
|
62
|
+
<a name="v0.6.2"></a>
|
63
|
+
### v0.6.2 (2015-02-23)
|
64
|
+
|
65
|
+
|
66
|
+
#### Bug Fixes
|
67
|
+
|
68
|
+
* **gridster:** forcing height of gridster container to auto when in collapsed mode ([749f37a5](http://github.com/DecksterTeam/gridster.js/commit/749f37a52074bd16362528f94ab28ec314379ee3))
|
69
|
+
|
70
|
+
<a name="v0.6.1"></a>
|
71
|
+
### v0.6.1 (2015-02-21)
|
72
|
+
|
73
|
+
|
74
|
+
#### Bug Fixes
|
75
|
+
|
76
|
+
* **gridster:**
|
77
|
+
* fixed expand_widget bug not expanding full width of window fix(gridster): user c ([dbc226d4](http://github.com/DecksterTeam/gridster.js/commit/dbc226d46c8224f753c07af6aff259785c60425f))
|
78
|
+
* fixing drag limit issues when using autogrow_cols ([afd83fea](http://github.com/DecksterTeam/gridster.js/commit/afd83fead8c719615ae01ef7b5d3863701ff2243))
|
79
|
+
* changed the way widgets were getting positioned so that margins are actually the ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))
|
80
|
+
|
81
|
+
<a name="v0.6.0"></a>
|
82
|
+
## v0.6.0 (2015-02-18)
|
83
|
+
|
84
|
+
|
85
|
+
#### Bug Fixes
|
86
|
+
|
87
|
+
* **gridster:** changed the way widgets were getting positioned so that margins are actually the ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))
|
88
|
+
|
89
|
+
#### Features
|
90
|
+
|
91
|
+
* **gridster:** make grid responsive ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))
|
92
|
+
|
93
|
+
<a name="v0.5.7"></a>
|
94
|
+
### v0.5.7 (2015-02-17)
|
95
|
+
|
96
|
+
<a name="v0.5.6"></a>
|
97
|
+
### v0.5.6 (2014-09-25)
|
98
|
+
|
99
|
+
|
100
|
+
#### Bug Fixes
|
101
|
+
|
102
|
+
* **draggable:** namespace events with unique ids ([79aff38c](http://github.com/ducksboard/gridster.js/commit/79aff38c60cc6ce2c0f0160bd3c6f93cb2511642))
|
103
|
+
|
104
|
+
<a name="v0.5.5"></a>
|
105
|
+
### v0.5.5 (2014-07-25)
|
106
|
+
|
107
|
+
|
108
|
+
#### Bug Fixes
|
109
|
+
|
110
|
+
* **gridster:** fire `positionschanged` when widget orig position changes ([9926ceff](http://github.com/ducksboard/gridster.js/commit/9926ceff59cba49c71542e45aa095be35eb1df58))
|
111
|
+
|
112
|
+
<a name="v0.5.4"></a>
|
113
|
+
### v0.5.4 (2014-07-16)
|
114
|
+
|
115
|
+
|
116
|
+
#### Bug Fixes
|
117
|
+
|
118
|
+
* **gridster:** serialize returns an Array object, not a jQuery object ([93df6cf6](http://github.com/ducksboard/gridster.js/commit/93df6cf6907fd0fb8787b3d068c9a9c467dcc020), closes [#394](http://github.com/ducksboard/gridster.js/issues/394))
|
119
|
+
|
120
|
+
<a name="v0.5.3"></a>
|
121
|
+
### v0.5.3 (2014-07-04)
|
122
|
+
|
123
|
+
|
124
|
+
#### Bug Fixes
|
125
|
+
|
126
|
+
* **gridster:**
|
127
|
+
* custom `ignore_dragging` overwrites the default value ([6bcfa6e1](http://github.com/ducksboard/gridster.js/commit/6bcfa6e16e4a88cbb5efff1ce29308737884a89d))
|
128
|
+
* sort widgets appropriately when reading them from DOM ([5c6d25cb](http://github.com/ducksboard/gridster.js/commit/5c6d25cbbe3de021806408f3cff6cb1e139c0a25))
|
129
|
+
|
130
|
+
|
131
|
+
#### Features
|
132
|
+
|
133
|
+
* make gridster AMD compatible ([589d7fd5](http://github.com/ducksboard/gridster.js/commit/589d7fd509a570fd02666c2f8231545211d6c83f))
|
134
|
+
* **gridster:** move widget up when added if there is space available ([8ec307b6](http://github.com/ducksboard/gridster.js/commit/8ec307b6f7173e94610409adcb1671372cc2c67d))
|
135
|
+
|
136
|
+
<a name="v0.5.2"></a>
|
137
|
+
### v0.5.2 (2014-06-16)
|
138
|
+
|
139
|
+
|
140
|
+
#### Bug Fixes
|
141
|
+
|
142
|
+
* **draggable:**
|
143
|
+
* handle both touch and click events ([021a6c23](http://github.com/ducksboard/gridster.js/commit/021a6c23e851210c1b817bd353a1e5e19ce10b90), closes [#207](http://github.com/ducksboard/gridster.js/issues/207), [#236](http://github.com/ducksboard/gridster.js/issues/236), [#329](http://github.com/ducksboard/gridster.js/issues/329), [#380](http://github.com/ducksboard/gridster.js/issues/380))
|
144
|
+
* replaced scrollX/Y with scrollLeft/Top ([bb7463a3](http://github.com/ducksboard/gridster.js/commit/bb7463a3241750397492dfbac133cea193f0254f))
|
145
|
+
* fix offset during drag ([c726c4ad](http://github.com/ducksboard/gridster.js/commit/c726c4ad9c18fea95e4b46b9bacd36c42aa9691c))
|
146
|
+
* bind drag events to $document ([dd6c7420](http://github.com/ducksboard/gridster.js/commit/dd6c7420087d5810a9f6b02bf9d81a04a60ae840))
|
147
|
+
* **gridster:**
|
148
|
+
* fix add_widget to use correct size_y when adding rows ([7d22e6c8](http://github.com/ducksboard/gridster.js/commit/7d22e6c8b201de33e33def77a93dc9009d0aa4cb))
|
149
|
+
* Removing previously added style tags before adding new one. ([93c46ff4](http://github.com/ducksboard/gridster.js/commit/93c46ff45ebe59f3658b7f32f05b67109aa87311))
|
150
|
+
|
151
|
+
|
152
|
+
#### Features
|
153
|
+
|
154
|
+
* **draggable:**
|
155
|
+
* allow ignore_dragging config option to be a function ([69fcfe45](http://github.com/ducksboard/gridster.js/commit/69fcfe459678e833cb53de040b9fbc96dd687543))
|
156
|
+
* option to not remove helper on drag stop ([03910df9](http://github.com/ducksboard/gridster.js/commit/03910df967a1ae7bcb2fa3aadd58255e0bcbf327))
|
157
|
+
|
158
|
+
<a name="v0.5.1"></a>
|
159
|
+
### v0.5.1 (2014-03-05)
|
160
|
+
|
161
|
+
|
162
|
+
#### Features
|
163
|
+
|
164
|
+
* **collision:** overlapping region as a config option ([720d487e](http://github.com/ducksboard/gridster.js/commit/720d487e3988593e2c60909c88aaff13fbd4f842))
|
165
|
+
* **coords:**
|
166
|
+
* allow both (left/x1) and (top/y1) attr keys ([6f22217f](http://github.com/ducksboard/gridster.js/commit/6f22217f056e4fc52f6405f2af49596105aae150))
|
167
|
+
* add destroy method ([fdeee4f6](http://github.com/ducksboard/gridster.js/commit/fdeee4f636266c7a0579ced833f04fec013b6863))
|
168
|
+
* **draggable:** keep container position prop if different than static ([04868a38](http://github.com/ducksboard/gridster.js/commit/04868a384d655d110f2d153d2fddb94b1c6d54a9))
|
169
|
+
* **gridster:** destroy element's data and optionally remove from DOM ([dc09f191](http://github.com/ducksboard/gridster.js/commit/dc09f191d8503669cfa4737122c77cb0f5b9c3d2))
|
170
|
+
|
171
|
+
<a name="v0.5.0"></a>
|
172
|
+
## v0.5.0 (2014-02-14)
|
173
|
+
|
174
|
+
|
175
|
+
#### Bug Fixes
|
176
|
+
|
177
|
+
* **autogrow:** refining autogrow_cols behavior and grid width issues ([835c2df8](http://github.com/ducksboard/gridster.js/commit/835c2df84419a92b1641b687fcf083f3ff102627))
|
178
|
+
* **resize.stop:** Call resize.stop at the latest possible moment ([e21f63a0](http://github.com/ducksboard/gridster.js/commit/e21f63a05a539f5c611eb49cd6861b1e38b36531))
|
179
|
+
|
180
|
+
|
181
|
+
#### Features
|
182
|
+
|
183
|
+
* **draggable:** Add toggle draggable method. ([073fdc40](http://github.com/ducksboard/gridster.js/commit/073fdc40e0a94dd371646fc54cd420e3ddab0254))
|
184
|
+
|
185
|
+
<a name="v0.4.4"></a>
|
186
|
+
### v0.4.4 (2014-02-13)
|
187
|
+
|
188
|
+
|
189
|
+
#### Features
|
190
|
+
|
191
|
+
* **resize:** add start/stop/resize event triggers ([7ca8deec](http://github.com/ducksboard/gridster.js/commit/7ca8deec8559d950097a6dc351cb0c6fcef3458d))
|
192
|
+
|
193
|
+
<a name="v0.4.3"></a>
|
194
|
+
### v0.4.3 (2014-02-11)
|
195
|
+
|
196
|
+
|
197
|
+
#### Bug Fixes
|
198
|
+
|
199
|
+
* **generated-styles:** cleaning cached serializations properly ([f8b04f29](http://github.com/ducksboard/gridster.js/commit/f8b04f298e12e46ca9b07f0bae0abc6b08ed6e18))
|
200
|
+
|
201
|
+
<a name="v0.4.2"></a>
|
202
|
+
### v0.4.2 (2014-02-07)
|
203
|
+
|
204
|
+
|
205
|
+
#### Bug Fixes
|
206
|
+
|
207
|
+
* recalculate grid width when adding widgets ([47745978](http://github.com/ducksboard/gridster.js/commit/4774597834300601fc81d5111a31a8c1672c55e1))
|
208
|
+
|
209
|
+
<a name="v0.4.1"></a>
|
210
|
+
### v0.4.1 (2014-02-07)
|
211
|
+
|
212
|
+
#### Bug Fixes
|
213
|
+
|
214
|
+
* add resize.min_size option to default config object ([5672edb0](http://github.com/ducksboard/gridster.js/commit/5672edb05e39c6b9ff5e3ca31d68c9e94dfaa617))
|
215
|
+
|
216
|
+
<a name="v0.4.0"></a>
|
217
|
+
## v0.4.0 (2014-02-07)
|
218
|
+
|
219
|
+
|
220
|
+
#### Bug Fixes
|
221
|
+
|
222
|
+
* **gridster:**
|
223
|
+
* leaking options with multiple Gridster instances ([07c71097](http://github.com/ducksboard/gridster.js/commit/07c7109771094d98be51d68448a20e1d2987b35d))
|
224
|
+
* resize.axes default option only 'both' ([62988780](http://github.com/ducksboard/gridster.js/commit/6298878077d5db129daa9780939fec5237b82af9))
|
225
|
+
* **licenses:** add required copyright message for underscore ([b563c094](http://github.com/ducksboard/gridster.js/commit/b563c094cf0f3a5da2288492f95759ae32e8967c))
|
226
|
+
* **readme:** link title jsfiddle -> jsbin, edit 5) of process steps ([0641aa89](http://github.com/ducksboard/gridster.js/commit/0641aa89833ecf9d167f7d8e89ee8bd5b4304248))
|
227
|
+
|
228
|
+
|
229
|
+
#### Features
|
230
|
+
|
231
|
+
* **draggable:**
|
232
|
+
* method to set drag limits dynamically ([d4482ec1](http://github.com/ducksboard/gridster.js/commit/d4482ec1476f8a0b6fb6cdeb25b7774ef678d81c))
|
233
|
+
* support horizontal scrolling while dragging ([ae4921b7](http://github.com/ducksboard/gridster.js/commit/ae4921b70798944211267cacf8a89e62d0818369))
|
234
|
+
* **gridster:** increase grid width when dragging or resizing ([37c4e943](http://github.com/ducksboard/gridster.js/commit/37c4e94358b9392710452b9e7f96454837bf9845))
|
235
|
+
* **resize:** add option to set min_size of a widget ([ff511872](http://github.com/ducksboard/gridster.js/commit/ff511872e65992ee89bd2a88d862caaf99733f38))
|
236
|
+
|
237
|
+
<a name="v0.3.0"></a>
|
238
|
+
## v0.3.0 (2013-11-18)
|
239
|
+
|
240
|
+
|
241
|
+
#### Features
|
242
|
+
|
243
|
+
* **draggable:**
|
244
|
+
* method to set drag limits dynamically ([d4482ec1](http://github.com/ducksboard/gridster.js/commit/d4482ec1476f8a0b6fb6cdeb25b7774ef678d81c))
|
245
|
+
* support horizontal scrolling while dragging ([ae4921b7](http://github.com/ducksboard/gridster.js/commit/ae4921b70798944211267cacf8a89e62d0818369))
|
246
|
+
* **gridster:** increase grid width when dragging or resizing ([b61df653](http://github.com/ducksboard/gridster.js/commit/b61df6535f728970fb8c6f25a208275dbde66550))
|
247
|
+
|
248
|
+
<a name="v0.2.1"></a>
|
249
|
+
### v0.2.1 (2013-10-28)
|
250
|
+
|
251
|
+
|
252
|
+
#### Features
|
253
|
+
|
254
|
+
* **resize:** Add start/stop/resize callbacks ([d4ec7140](http://github.com/ducksboard/gridster.js/commit/d4ec7140f736bc30697c75b54ed3242ddf1d75b9))
|
255
|
+
|
256
|
+
<a name="v0.2.0"></a>
|
257
|
+
## v0.2.0 (2013-10-26)
|
258
|
+
|
259
|
+
|
260
|
+
#### Bug Fixes
|
261
|
+
|
262
|
+
* fixes and improvements in widget-resizing. ([ae02b32b](http://github.com/ducksboard/gridster.js/commit/ae02b32b9210c6328f4acc339e215ae50c134f77), closes [#32](http://github.com/ducksboard/gridster.js/issues/32))
|
263
|
+
* **gridster:**
|
264
|
+
* the preview holder should not always use `li` ([1ade74e2](http://github.com/ducksboard/gridster.js/commit/1ade74e239485b07e870fca44e1eafb3ff1ae283))
|
265
|
+
* overlapping widget problem ([31fd8d6b](http://github.com/ducksboard/gridster.js/commit/31fd8d6ba893e4c39b91ba30d429e37f3da30b24))
|
266
|
+
* Orphan preview holder when dragging is interrupted ([1b13617d](http://github.com/ducksboard/gridster.js/commit/1b13617df2ce53235bdf3a1e38f1555f529663c3))
|
267
|
+
* remove_widget Returns the instance of the Gridster Class ([5bfbc5c0](http://github.com/ducksboard/gridster.js/commit/5bfbc5c0b5ab49c2a7c651327ce2e0f30f594985))
|
268
|
+
|
269
|
+
|
270
|
+
#### Features
|
271
|
+
|
272
|
+
* **draggable:**
|
273
|
+
* new config option to move or not the dragged element ([4d9b2a84](http://github.com/ducksboard/gridster.js/commit/4d9b2a84f11cb7cb2ddad51c158d92b82e7bc447))
|
274
|
+
* CSS selectors support in `ignore_dragging` config opt ([0f956249](http://github.com/ducksboard/gridster.js/commit/0f95624925be97aee7a8450707e04e887e4dac58))
|
275
|
+
* pass previous position to the drag callback ([055cc0e4](http://github.com/ducksboard/gridster.js/commit/055cc0e4f6f9de5721986515656ac894855f9e02))
|
276
|
+
* Don't start new drag if previous one hasn't stopped ([91ca6572](http://github.com/ducksboard/gridster.js/commit/91ca65721c2eb32b5dec82cdc5e5e7f81dac329e))
|
277
|
+
* pass useful data to all drag callbacks ([8dda2410](http://github.com/ducksboard/gridster.js/commit/8dda2410f300592706985c05141ca6b702977dc0))
|
278
|
+
* **gridster:** drag-and-drop widget resizing ([e1924053](http://github.com/ducksboard/gridster.js/commit/e19240532de0bad35ffe6e5fc63934819390adc5))
|
279
|
+
* **utils:** add delay helper to utils ([faa6c5db](http://github.com/ducksboard/gridster.js/commit/faa6c5db0002feccf681e9f919ed583eef152773))
|
280
|
+
|
281
|
+
dustmoo Modifications
|
282
|
+
===========
|
283
|
+
Changelog 2013-04-3
|
284
|
+
|
285
|
+
Fork now handles standard behavior properly with swap allowing larger widgets to shift down.
|
286
|
+
|
287
|
+
Changelog 2013-04-2
|
288
|
+
|
289
|
+
Added Demo to Repository.
|
290
|
+
|
291
|
+
Changelog 2013-02-27
|
292
|
+
|
293
|
+
Added "Static widget support" Static Items default to the "static" class.
|
294
|
+
|
295
|
+
You can customize this class by using the code below:
|
296
|
+
|
297
|
+
$.gridster({
|
298
|
+
static_class: 'custom_class',
|
299
|
+
draggable: {
|
300
|
+
items: ".gs_w:not(.custom_class)"
|
301
|
+
}
|
302
|
+
});
|
303
|
+
|
304
|
+
I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too.
|
305
|
+
This version is much more reliable in swapping space with widgets.
|
306
|
+
|
307
|
+
There are also new options for Maximum Rows and Maximum Columns:
|
308
|
+
|
309
|
+
$.gridster({
|
310
|
+
max_rows: map_rows,
|
311
|
+
max_cols: map_cols,
|
312
|
+
shift_larger_widgets_down: false
|
313
|
+
});
|
314
|
+
|
315
|
+
Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.
|
316
|
+
|
317
|
+
|
318
|
+
Changelog 11-26-2012
|
319
|
+
|
320
|
+
Reworked swapping functionality to better handle large to small widget handling.
|
321
|
+
|
322
|
+
---
|
323
|
+
|
324
|
+
Widgets of smaller or equal size to the dragged widget (player)
|
325
|
+
will swap places with the original widget.
|
326
|
+
|
327
|
+
This causes tiles to swap left and right as well as up and down.
|
328
|
+
|
329
|
+
By default smaller players will shift larger widgets down.
|
330
|
+
|
331
|
+
I have added an option to prevent this behavior:
|
332
|
+
|
333
|
+
$.gridster({
|
334
|
+
shift_larger_widgets_down: false
|
335
|
+
});
|
336
|
+
|
337
|
+
By setting shift_larger_widgets_down to false, smaller widgets will not displace larger ones.
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2012 Ducksboard
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/dsmorse/gridster.js.svg)](http://travis-ci.org/dsmorse/gridster.js)
|
2
|
+
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/gridster.js-rails.svg)](http://badge.fury.io/rb/gridster.js-rails)
|
4
|
+
[![GitHub version](https://badge.fury.io/gh/dsmorse%2Fgridster.js.svg)](http://badge.fury.io/gh/dsmorse%2Fgridster.js)
|
5
|
+
[![Bower version](https://badge.fury.io/bo/gridster-js.svg)](http://badge.fury.io/bo/gridster-js)
|
6
|
+
|
7
|
+
Gridster.js
|
8
|
+
===========
|
9
|
+
|
10
|
+
Gridster is a jQuery plugin that makes building intuitive draggable
|
11
|
+
layouts from elements spanning multiple columns. You can even
|
12
|
+
dynamically add and remove elements from the grid.
|
13
|
+
|
14
|
+
More at [http://gridster.net/](http://gridster.net/).
|
15
|
+
|
16
|
+
### Live Preview at: [http://dsmorse.github.io/gridster.js/](http://dsmorse.github.io/gridster.js/)
|
17
|
+
|
18
|
+
[Releases](https://github.com/dsmorse/gridster.js/releases)
|
19
|
+
|
20
|
+
[CHANGELOG](https://github.com/dsmorse/gridster.js/blob/master/CHANGELOG.md)
|
21
|
+
|
22
|
+
Gridster was created by Ducksboard but they have basiclly abondoned the project
|
23
|
+
and even those who had write permissions to the repo are not merging pull requests.
|
24
|
+
|
25
|
+
## Forks
|
26
|
+
|
27
|
+
As of result of the inactivity over the last year in the [Ducksboard](https://github.com/ducksboard/gridster.js) repository, [@dsmorse](https://github.com/dsmorse/gridster.js) has created a fork
|
28
|
+
for current support. He will GLADLY accept pull requests, and will be working to merge existing
|
29
|
+
Pull Requests from Ducksboard repo.
|
30
|
+
|
31
|
+
## Ruby on Rails integration
|
32
|
+
|
33
|
+
This artifact is published to [rubygems.org](https://rubygems.org/gems/gridster.js-rails) to be consumed by ruby on rails applications.
|
34
|
+
|
35
|
+
Include gridster.js-rails in Gemfile;
|
36
|
+
|
37
|
+
``` ruby
|
38
|
+
gem 'gridster.js-rails'
|
39
|
+
```
|
40
|
+
|
41
|
+
and run bundle install.
|
42
|
+
|
43
|
+
### Configuration
|
44
|
+
|
45
|
+
Add this line to app/assets/stylesheets/application.css
|
46
|
+
|
47
|
+
``` css
|
48
|
+
*= require jquery.gridster
|
49
|
+
```
|
50
|
+
|
51
|
+
Add this line to app/assets/javascripts/application.js
|
52
|
+
|
53
|
+
``` javascript
|
54
|
+
//= require jquery.gridster
|
55
|
+
```
|
56
|
+
|
57
|
+
## Contributing to this project
|
58
|
+
|
59
|
+
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
|
60
|
+
|
61
|
+
* [Bug reports](CONTRIBUTING.md#bugs)
|
62
|
+
* [Feature requests](CONTRIBUTING.md#features)
|
63
|
+
* [Pull requests](CONTRIBUTING.md#pull-requests)
|
64
|
+
|
65
|
+
|
66
|
+
## License
|
67
|
+
|
68
|
+
Distributed under the MIT license.
|
69
|
+
|
70
|
+
## Whodunit
|
71
|
+
|
72
|
+
Gridster is built by [Ducksboard](http://ducksboard.com/) with the help of all
|
73
|
+
these [wonderful people](https://github.com/ducksboard/gridster.js/graphs/contributors).
|
data/bower.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "gridster",
|
3
|
+
"homepage": "dsmorse.github.io/gridster.js/",
|
4
|
+
"version": "0.6.9",
|
5
|
+
"dependencies": {
|
6
|
+
"jquery": "^2.1.3"
|
7
|
+
},
|
8
|
+
"devDependencies": {
|
9
|
+
"requirejs": "^2.1.17",
|
10
|
+
"qunit": "~1.18.0"
|
11
|
+
},
|
12
|
+
"main": [
|
13
|
+
"dist/jquery.gridster.js",
|
14
|
+
"dist/jquery.gridster.css"
|
15
|
+
],
|
16
|
+
"private": false,
|
17
|
+
"ignore": [
|
18
|
+
".bowerrc",
|
19
|
+
".jshintrc",
|
20
|
+
".gitignore",
|
21
|
+
".travis.yml",
|
22
|
+
"CONTRIBUTING.md",
|
23
|
+
"Gruntfile.js",
|
24
|
+
"package.json",
|
25
|
+
"test/",
|
26
|
+
"gridster.js-rails.gemspec",
|
27
|
+
"Gemfile",
|
28
|
+
"Gemfile.lock",
|
29
|
+
"lib"
|
30
|
+
]
|
31
|
+
}
|