408 Commits

Author SHA1 Message Date
faa6c5db00 feat(utils): add delay helper to utils 2013-10-26 19:49:31 +02:00
bdfff6ce67 chore(grunt): add grunt-conventinal-changelog 2013-10-26 19:49:31 +02:00
307f8ade36 chore(grunt): add grunt-bump to manage releases 2013-10-26 19:49:31 +02:00
21fcad9a28 style(generated-css): add line breaks in css declarations 2013-10-26 19:49:31 +02:00
ae02b32b92 fix: fixes and improvements in widget-resizing. Closes #32 2013-10-26 19:49:31 +02:00
1ade74e239 fix(gridster): the preview holder should not always use li
Use the same element as the original widget for the preview holder.
Using a <li> can cause a list item bullet to be displayed when widgets
are not necessarily <li> elements.
2013-10-26 19:49:30 +02:00
31fd8d6ba8 fix(gridster): overlapping widget problem 2013-10-26 19:49:28 +02:00
1b13617df2 fix(gridster): Orphan preview holder when dragging is interrupted
After beginning a drag, if the mouse button is released outside of the
screen, and if a subsequent drag operation is begun on another widget
(while the previous widget still follows the mouse around), Draggable
will trigger a new drag start event, causing Gridster to leave the
current widget + its preview holder aside and start dragging the new
widget. This will lead to an orphan preview holder to be left on the
screen.

A quick solution is to ignore drag start without receiving a drag stop.
2013-10-26 17:43:54 +02:00
5bfbc5c0b5 fix(gridster): remove_widget Returns the instance of the Gridster Class
Following same pattern as remove_all_widgets --> remove_widget also
return *this* (as per inlined comment documentation)
2013-10-26 17:43:54 +02:00
ef626f8132 update dist 2013-06-14 12:05:52 +02:00
f418ecd526 grunt/config: change output file names due to the name change in package.json
Package name was changed from `jquery.gridster` to `gridster`
2013-06-14 12:05:06 +02:00
c0c12d0c38 gridster/fix: calculating container_width correctly
Thanks @badtant for the notice (3d755fd793 (commitcomment-3423763))
2013-06-14 12:03:06 +02:00
10ef102e34 bower: merging bower.json into package.json.
Install gridster via bower was broken.
2013-06-13 17:56:03 +02:00
f749c13e4a updated dist 2013-06-13 15:36:40 +02:00
8239d2e4ce updated dist 2013-06-13 15:22:48 +02:00
0a3315d3cb max_cols: to disable max_col option set to null instead of '-1'.
Default is null.
2013-06-13 15:22:27 +02:00
23482b58cd updated diet 2013-06-13 12:14:21 +02:00
b4ac8dc0bd drag/touch: don't prevent default when start dragging in touch device 2013-06-13 12:14:06 +02:00
e1a5b4ed52 gridster/fix: using comparators in sort methods.
Sort method by default orders alphabetically, but we are sorting numbers
and this means that: 40 < 6. And we not expect this result.
2013-06-13 12:01:47 +02:00
bfbcba0ea3 Added watch command to Gruntfile config 2013-06-13 11:44:50 +02:00
86ab9701c5 Ignore libs folder 2013-06-13 11:43:37 +02:00
fa227ec66e bump up to jQuery 2.0 and start using bower for managing dependencies 2013-06-13 11:43:37 +02:00
d3785c49fc Removed libs folder from the repo. Install dependencies with bower. 2013-06-13 11:43:37 +02:00
4c02e4c1ed Reverting some changes in commit 6302b98
Check to avoid generation of duplicated stylesheet-tags shouldn't have
been removed from Gridster. It's useful when calling multiple times 
`generate_stylesheet` method once Gridster is initializated. We use it
at ducksboard to generate a TVmode version of the grid with bigger widgets.

Refactored the way stylesheet tags are removed. When created I push them 
to a jQuery collection which is removed when `destroy` method is executed.
2013-06-13 11:43:37 +02:00
3d755fd793 Pass container width to draggable instance. Relative to 5569caa687 2013-06-13 11:43:37 +02:00
2aa9b55433 namespaced events instead of caching callbacks 2013-06-13 11:43:37 +02:00
213a40c7ea Fixed a couple of errors in the methods definition
Added my own IDE filed in the .gitignore file
2013-06-13 11:43:37 +02:00
6fdb2a5ead gitignore: added .DS_Store 2013-06-13 11:43:36 +02:00
70ccff71de Update gruntfile and package.json to compliance with grunt 0.4.x 2013-06-13 11:43:15 +02:00
20f98ae383 Updated Dist and Gruntfile 2013-05-15 09:29:59 -07:00
ef476bcd1e Merge branch 'master' of https://github.com/ducksboard/gridster.js 2013-05-15 09:29:34 -07:00
c2fcff7276 Updated Dist and Gruntfile 2013-05-15 09:28:48 -07:00
eca38b6272 Merge pull request #165 from matiangul/master
Fix is_empty method
2013-05-14 08:42:10 -07:00
361c751e6e Updated Readme 2013-05-14 08:40:49 -07:00
bc9859fede Add Gruntfile 2013-05-14 07:54:54 -07:00
52dc36ead9 Merge pull request #169 from tuvokki/master
Fix for Issue #158
2013-05-14 07:50:05 -07:00
826120bdb1 resize_widget function with callback parameter
Is it possible to add a callback to the resize_widget function, that is
called when the resizing of a widget is finished? This may help to
update the widget content properly.
2013-05-13 16:14:47 +02:00
fca830007a Fixed is_empty method 2013-05-04 11:05:00 +02:00
4c9d502cbe Updated Readme added PSA 2013-04-25 09:16:28 -07:00
bd63315641 Updated to latest version of Grunt 2013-04-25 08:36:54 -07:00
d56f6d80a3 Merge pull request #152 from rfink/master
Fix for issue #46
2013-04-24 08:13:30 -07:00
c0d0cd33ce Merge pull request #154 from tuvokki/master
Add setting for maximum number of columns
2013-04-24 08:08:12 -07:00
5569caa687 Add max_cols setting
Right now the number of columns is calculated by dividing the available
space by the necessary space. I want to have an option to limit the
number of calculated columns, without changing the width of the div my
grid lives in.

In order to limit the number of calculated columns max_cols is set to a
number. To have 'unlimited' columns set the value of max_cols to -1 (as
ids done in the default settings). This provides the arbitrary useful
functionality to set the max number of columns to 0. Any sideeffect
caused by this are mitigated by checking that the max_cols is larger
than the min_cols setting.
2013-04-11 14:18:54 +02:00
6302b988d1 Fix for not removing stylesheets on destroy 2013-04-09 12:27:04 +00:00
6eb521015c Update Readme 2013-04-03 09:45:34 -07:00
412ee61bbe Updated sample 2013-04-03 09:44:16 -07:00
3cc9485ae0 Better handling of widgets slideing down 2013-04-03 09:36:13 -07:00
762dd445a1 update readme 2013-04-02 09:07:22 -07:00
51ba8f9dfc rebuilt dist 2013-04-02 09:06:20 -07:00
cb98d7d43b Merge branch 'master' of https://github.com/dustmoo/gridster.js 2013-04-02 09:05:52 -07:00