Shuntaro Ogawa
0ad0b3bd92
Convert to integer type of property value when sorting.
2014-12-18 03:29:48 +09:00
Eric Mann
7026f0f608
Accepting Resize API pull request. @props tormoalto
2014-12-17 09:44:24 -08:00
Shuntaro Ogawa
913462f190
add element "#qunit-testresult"
2014-12-17 23:50:30 +09:00
Shuntaro Ogawa
975e389e0a
rename test files.
2014-12-17 23:48:48 +09:00
Chris Rock
bd8dbf8459
Added destroy of widget coords and resize api
2014-12-02 13:55:43 -05:00
jcp
0fe7f23c98
fix (Gridster.js): destroy resize_api
...
Call resize_api.destroy() to fix memory leak.
2014-12-01 21:12:42 +01:00
cwat-bfarkaand cwat-bfarka
d09dea2a6f
fix issue #469
...
remove trailing comma to be more IE compliant
2014-11-21 09:56:15 +01:00
Chris Rock
41ad5c9bd6
Added ability to specify scroll container for drag/resize
2014-11-18 11:39:51 -05:00
Toosick
7dbd7a64f7
Update jquery.gridster.js
2014-11-17 11:14:03 -06:00
Toosick
821264d30e
Fix gridster destroy
...
Removes the coords data from each element.
2014-11-17 10:20:30 -06:00
yfix
a14669e266
Merge pull request #1 from ducksboard/master
...
Update from origin
2014-10-15 12:29:31 +03:00
vieron
314037471f
Release v0.5.6
2014-09-25 12:27:05 +02:00
vieron
79aff38c60
fix(draggable): namespace events with unique ids
...
Until now if you had multiple instances of Draggable in the same page,
when destroying one of them, all of the events binded to other
instances were also destroyed.
So, we are namespacing event names with unique id’s per instance to ensure
only that only the corresponding events are unbinded.
The other solution is to cache references to the event handlers, but most
of them are proxied or throttled which makes more mess...
2014-09-25 12:26:15 +02:00
joaoafrmartins
17b101328b
commonjs
2014-09-17 00:49:35 +01:00
joaoafrmartins
ddf8bbdd9e
support UMD
2014-09-17 00:03:02 +01:00
Stijn Verrept
9099da87d6
Also added parseInt to the add_faux_cols method
2014-09-10 22:54:54 +02:00
Stijn Verrept
4525aa1912
Also added parseInt to the add_faux_cols method
2014-09-10 22:50:01 +02:00
Stijn Verrept
8b6a48bf8c
Wrong addition solved in add_faux_rows by adding parseInt
2014-09-08 16:45:46 +02:00
aegisrunestone
cdb0f5cde0
Changed "instanceof jQuery" to "instanceof $"
...
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
2014-09-02 14:53:58 +08:00
Tropicalista
a027c6c2dd
Create bower.json
2014-08-24 09:10:45 +02:00
Stefan Schmidt
274dee368c
add_resize_handle: multiple span (resizeable) entries in widgets
...
On init() or get_widgets_from_DOM() new span entries are added to the
widgets container.
2014-07-30 17:08:13 +02:00
vieron
1d06af1d5c
Release v0.5.5
2014-07-25 15:50:59 +02:00
vieron
9926ceff59
fix(gridster): fire positionschanged when widget orig position changes
...
Until now `gridster:positionschanged` was being fired only if the widget
was moved up, but we also need to know if position is different when
`avoid_overlapped_widgets` is set to true (by default).
2014-07-25 15:49:14 +02:00
vieron
7640971905
Release v0.5.4
2014-07-16 20:29:47 +02:00
vieron
93df6cf690
fix(gridster): serialize returns an Array object, not a jQuery object
...
Fixes #394
2014-07-16 20:28:54 +02:00
Ashley Whetter
8940d6f107
Fixed a typo in Gridster class documentation
2014-07-10 21:15:52 +01:00
vieron
e837ded844
Release v0.5.3
2014-07-04 19:04:54 +02:00
Hannes Rosenbauer
97cc8b3ad2
Merge branch 'resize-widget-dimensions' of https://github.com/rebugger/gridster.js into resize-widget-dimensions
...
Conflicts:
src/jquery.gridster.js
2014-06-26 10:35:13 +02:00
Hannes Rosenbauer
c9ecfdb1c3
fix min-width and min-height after resize
...
remove min-width and min-height after stopping resize
2014-06-26 10:31:38 +02:00
Hannes Rosenbauer
c0bc1b9e5d
add resize_widget_dimension()
...
resize widgets after initialization
Conflicts:
src/jquery.gridster.js
2014-06-26 10:31:38 +02:00
vieron
6bcfa6e16e
fix(gridster): custom ignore_dragging overwrites the default value
2014-06-25 23:24:53 +02:00
vieron
21a294cf29
chore: add reference to defaults in constructors
2014-06-25 23:10:59 +02:00
vieron
a9c76d572b
feature(gridster): added auto_init config option, default to true
...
Useful when using `positionschanged` event, fired before gridster
instance is cached.
2014-06-25 10:57:19 +02:00
vieron
589d7fd509
feat: make gridster AMD compatible
2014-06-25 10:54:21 +02:00
vieron
5c6d25cbbe
fix(gridster): sort widgets appropriately when reading them from DOM
2014-06-25 10:54:17 +02:00
vieron
8ec307b6f7
feat(gridster): move widget up when added if there is space available
2014-06-25 10:52:50 +02:00
vieron
aef185c5da
style: some formatting changes
2014-06-24 23:08:49 +02:00
vieron
b2323910ba
chore: move sorting methods in prototype to the constructor
...
Useful to use them when we there is no gridster instance, like sorting
a previously stored output from the serialize method.
2014-06-24 23:08:49 +02:00
vieron
c554aa89d8
Release 0.5.2
2014-06-16 19:03:21 +02:00
vieron
021a6c23e8
fix(draggable): handle both touch and click events
...
Fixes #207 , #236 , #329 , and #380
2014-06-16 18:45:50 +02:00
David Kwak and vieron
7d22e6c8b2
fix(gridster): fix add_widget to use correct size_y when adding rows
2014-06-16 17:03:00 +02:00
Hannes Rosenbauer and vieron
bb7463a324
fix(draggable): replaced scrollX/Y with scrollLeft/Top
...
window.scrollX/Y is only available in Chrome, not in IE
2014-06-16 17:03:00 +02:00
Hannes Rosenbauer and vieron
c726c4ad9c
fix(draggable): fix offset during drag
...
when the scrollX/Y is changed during drag (e.g. by the mousewheel)
the offset wasn't correct
2014-06-16 17:03:00 +02:00
David Small and vieron
93c46ff45e
fix(gridster): Removing previously added style tags before adding new one.
...
Hopefully fixes #211 and #294 .
2014-06-16 16:59:20 +02:00
Hannes Rosenbauer and vieron
dd6c742008
fix(draggable): bind drag events to $document
...
$body won't receive mouseup if the cursor is outside the browser window, $document does
2014-06-16 16:59:07 +02:00
Cosmin Pascu
4a1ef1029b
Fixed typeof comparison to match against string.
2014-05-14 15:38:18 -07:00
Cosmin Pascu
89bce45fc1
Fixed issue where existing widget position would be overwritten on gridmap when adding a faux cell to accommodate another widget.
2014-04-30 04:34:45 -07:00
David Small
1c3659c9d0
Removing previously added style tags before adding new one.
...
Hopefully fixes #211 and #294 .
2014-04-10 16:22:43 -04:00
Adrian
72669b0cf6
fixes-add-widget-overlapping-issue-#340
2014-04-09 12:19:29 -04:00
Hannes Rosenbauer
6554499a93
fix min-width and min-height after resize
...
remove min-width and min-height after stopping resize
2014-04-08 15:08:50 +02:00