416 Commits

Author SHA1 Message Date
699fad9d06 Release v0.6.8 2015-04-28 21:25:41 -06:00
9732b017eb Merge commit 'e69c3e8f64aa4557ef032e4d0d8185e83b1aed21'
fix(gridster): responsive width now resizes based off wrapper not window
2015-04-28 21:18:55 -06:00
8473bd6d9d update dependencies and jshint 2015-04-28 21:00:24 -06:00
e69c3e8f64 fix(gridster): responsive width now resizes based off wrapper not window 2015-04-22 16:23:13 -04:00
3a696ad732 0.6.7 release 2015-04-16 15:05:15 -06:00
57a2604365 rev jquery version 2015-04-16 15:01:31 -06:00
9863656b5c style(jshint): adapt code to pass jshint 2015-04-16 20:26:19 +02:00
3006d4f393 style(jshint): add jshint config and setup grunt task 2015-04-16 20:26:19 +02:00
576b5ae3f0 fix(gridster): ensure coords instances are destroyed on widgets
…when removing a widget, or when destroying the gridster instance.
Before this change, if you called destroy without `remove` set to true,
coords instances was leaking jQuery data objects.

Also nullified the gridmap, and faux_grid arrays.
2015-04-16 20:26:19 +02:00
cda560f4f3 fix(gridster): resize_widget also accepts HTMLElements
for consistency with the `remove_widget`
2015-04-16 20:26:18 +02:00
7de5bbabc0 feat(gridster): add config to set custom show/hide widget methods
by default jQuery’s `hide` and `show` methods are used. You could also
use fadeIn/fadeOut or write your own kind of jQuery plugin like
`$.fn.showInAFancyWay` and use `showInAFancyWay` as the value in the
show_method config option.

If you want to keep the previos behaviour, you need to set
`hide_method` option to `’fadeOut’`

Breaking Changes

`remove_widget` and `remove_all_widgets` methods not return a promise
instead of the gridster instance
2015-04-16 20:26:18 +02:00
e258d595b0 tests(gridster): add basic test suite for gridster
Tests are build with mocha + chai, and you can run them from the command line with `grunt karma` or opening `test/index.html` in your browser.

This is a first approach, there are hundreds of tests more that should be added.
I’ve ported some tests on PRs but more needs to be done.
2015-04-16 20:26:18 +02:00
2002c45595 feat(gridster.css): remove possible default pading 2015-04-16 20:26:18 +02:00
93cd01ecc3 chore(gridster): remove unused code 2015-04-16 20:26:18 +02:00
8080daccd1 docs(gridster): fixed a typo in Gridster class documentation 2015-04-16 20:26:18 +02:00
c6226306c2 fix(gridster): changed "instanceof jQuery" to "instanceof $"
Original code will break if jquery noconflict is applied, where $ and jQuery produces jQuery instance of different versions.
2015-04-16 20:26:18 +02:00
d947175257 fix(gridster): wrong addition solved in add_faux_rows/cols by adding parseInt
Closes #426, #425
2015-04-16 20:26:18 +02:00
d3f25f3fbb feat(draggable): autoscrolling
If the element being dragged is inside a scrollable container, keeping the
mouse in one of the sides of the container will trigger scroll.
2015-04-16 20:26:18 +02:00
43148b87e5 feat(gridster): browserify compatibility 2015-04-16 20:26:18 +02:00
65f43a529f Release v0.6.6 2015-04-14 13:18:54 -04:00
0286676e16 Merge pull request #6 from DecksterTeam/dadams
Resize handles
2015-04-14 13:17:59 -04:00
6c5ef28853 preventing gridster from creating extra resize handles while centering 2015-04-14 12:59:41 -04:00
12f4ab181d Revert "fix(gridster): preventing gridster from adding extra resize handles"
This reverts commit 9d077da676826606243c2552dc9997c492687203.
2015-04-14 12:55:49 -04:00
9d077da676 fix(gridster): preventing gridster from adding extra resize handles 2015-04-14 12:33:04 -04:00
446852a260 feat(gridster): Common.js support
Closes #434
2015-04-14 11:43:35 +02:00
ccbac1fcc3 chore: bump up jquery version to 2.1.3 2015-04-14 11:43:35 +02:00
jcp
b16293268c fix(gridster): destroy resize_api
Call  `resize_api.destroy()`  to fix  memory leak.

Closes #473
2015-04-14 11:43:23 +02:00
595a94f1bd fix(gridster): ensure widget dimensions and coords are always ints
Thanks to @sogawa for reporting
2015-04-14 11:39:55 +02:00
7af6bf7a98 Add unit testing for core API, ensure all demos work, and add unit testing to ensure they stay working. 2015-04-12 23:26:19 -06:00
385cc757ac bring the Demo's into master for testing & Automate the updates to gh-pages branch 2015-04-10 12:26:54 -06:00
69f9c81d48 Update Samples 2015-04-09 08:37:29 -06:00
59b475d0d1 Merge commit '6eb521015cda5212f6fa92492dbe4050bd92e00c'
* commit '6eb521015cda5212f6fa92492dbe4050bd92e00c':
  Update Readme
  Updated sample
  Better handling of widgets slideing down
  update readme
  rebuilt dist
  Added Swap Demo
  Added disabled dragging init feature gridster.js
  Working on Static widgets
2015-04-09 00:25:16 -06:00
f29ab737ed Merge from dustmoo/gridster.js
* commit '8f431a423302c7c58f511d5ede9270077993f9b3':
  Updated Readme
  Updated Readme
  Version Updates
  Serialize bug fix
  Added max_rows and drag restriction - ready for integration :)
  Removed console.logs
  Removed console.logs
  Good enough swap logic for now
  Swap queue awesomeness
  Swap queue awesomeness
  Fix row issue
  working on map grid functionality
2015-04-08 23:48:53 -06:00
0cd0af947b Merge from dustmoo/gridster.js
* commit '262d115cf8b5bdaed40a7e5b6aaa6df6e71b6a07':
  Added swaping queue, better handling of large to small swaps
  Added swaping queue, better handling of large to small swaps
  More predictable default behavior
  Updated Readme
  Added property to prevent larger widget shifting
  Added grid-swap behavior
2015-04-08 23:22:58 -06:00
08628126f5 Fix my merge error from the merge from remote-tracking branch 'cpascu/gridster.js/faux-rows-patch' 2015-04-08 22:40:49 -06:00
8f6d18ea9a Release v0.6.6 2015-04-08 09:44:39 -06:00
853e1fc72e Update Readme 2015-04-08 09:37:06 -06:00
a908eaecae Merge remote-tracking branch 'Laboratory/gridster.js.git/master'
* Laboratory/gridster.js.git/master:
  delete jquery dependency
2015-04-08 09:04:08 -06:00
4e2697e3d4 Merge remote-tracking branch 'yfix/gridster.js.git/master'
* yfix/gridster.js.git/master:
2015-04-08 08:36:18 -06:00
c220ecf311 Merge remote-tracking branch 'rebugger/gridster.js.git/resize-widget-dimensions'
* rebugger/gridster.js.git/resize-widget-dimensions:
  fix min-width and min-height after resize
  add resize_widget_dimension() resize widgets after initialization
  fix min-width and min-height after resize
  add resize_widget_dimension() resize widgets after initialization
2015-04-08 08:22:51 -06:00
e77e8d7e61 Merge remote-tracking branch 'andreas-trad/gridster.js.git/patch-1'
* andreas-trad/gridster.js.git/patch-1:
  Prevent multi <style> generation
2015-04-08 08:13:58 -06:00
b87c0113c3 Merge remote-tracking branch 'kwak27/gridster.js/fix_add_widget'
* kwak27/gridster.js/fix_add_widget:
  fix add_widget to use correct size_y when adding rows
2015-04-08 08:04:03 -06:00
2acdff1056 Merge remote-tracking branch 'AdrianTeh/gridster.js.git/master'
* AdrianTeh/gridster.js.git/master:
  fixes-add-widget-overlapping-issue-#340
2015-04-08 07:19:26 -06:00
524ed2bb99 Merge remote-tracking branch 'dasmall/gridster.js.git/master'
* dasmall/gridster.js.git/master:
  Removing previously added style tags before adding new one. Hopefully fixes #211 and #294.
2015-04-08 07:14:45 -06:00
7ee8824250 Merge remote-tracking branch 'cpascu/gridster.js/faux-rows-patch'
* cpascu/gridster.js/faux-rows-patch:
  Fixed typeof comparison to match against string.
  Fixed issue where existing widget position would be overwritten on gridmap when adding a faux cell to accommodate another widget.
2015-04-08 07:06:12 -06:00
56e9f62912 Merge remote-tracking branch 'AWhetter/gridster.js/fix_doc_typo'
* AWhetter/gridster.js/fix_doc_typo:
  Fixed a typo in Gridster class documentation
2015-04-07 22:40:45 -06:00
0d9d5c2833 Merge remote-tracking branch 'dragonier/gridster.js/master'
* dragonier/gridster.js/master:
  add_resize_handle: multiple span (resizeable) entries in widgets
2015-04-07 22:30:38 -06:00
35ba767c55 Merge remote-tracking branch 'Tropicalista/gridster.js/master' 2015-04-07 22:25:02 -06:00
0b08e1fb81 Merge remote-tracking branch 'aegisrunestone/gridster.js/master'
* aegisrunestone/gridster.js/master:
  Changed "instanceof jQuery" to "instanceof $"
2015-04-07 22:22:18 -06:00
85bc2f47ec Merge remote-tracking branch 'rept/gridster.js/addition_problem_add_faux_rows'
* rept/gridster.js/addition_problem_add_faux_rows:
  Also added parseInt to the add_faux_cols method
  Also added parseInt to the add_faux_cols method
  Wrong addition solved in add_faux_rows by adding parseInt
2015-04-07 22:19:48 -06:00