David Morse
8473bd6d9d
update dependencies and jshint
2015-04-28 21:00:24 -06:00
David Morse
3a696ad732
0.6.7 release
2015-04-16 15:05:15 -06:00
David Morse
57a2604365
rev jquery version
2015-04-16 15:01:31 -06:00
Javi Sánchez-Marín
9863656b5c
style(jshint): adapt code to pass jshint
2015-04-16 20:26:19 +02:00
Javi Sánchez-Marín
3006d4f393
style(jshint): add jshint config and setup grunt task
2015-04-16 20:26:19 +02:00
Javi Sánchez-Marín
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
Javi Sánchez-Marín
cda560f4f3
fix(gridster): resize_widget also accepts HTMLElements
...
for consistency with the `remove_widget`
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín
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
Javi Sánchez-Marín
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
Javi Sánchez-Marín
2002c45595
feat(gridster.css): remove possible default pading
2015-04-16 20:26:18 +02:00
Javi Sánchez-Marín
93cd01ecc3
chore(gridster): remove unused code
2015-04-16 20:26:18 +02:00
Ashley Whetter and Javi Sánchez-Marín
8080daccd1
docs(gridster): fixed a typo in Gridster class documentation
2015-04-16 20:26:18 +02:00
aegisrunestone and Javi Sánchez-Marín
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
Stijn Verrept and Javi Sánchez-Marín
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
Javi Sánchez-Marín
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
Javi Sánchez-Marín
43148b87e5
feat(gridster): browserify compatibility
2015-04-16 20:26:18 +02:00
joaoafrmartins and Javi Sánchez-Marín
446852a260
feat(gridster): Common.js support
...
Closes #434
2015-04-14 11:43:35 +02:00
Javi Sánchez-Marín
ccbac1fcc3
chore: bump up jquery version to 2.1.3
2015-04-14 11:43:35 +02:00
jcp and Javi Sánchez-Marín
b16293268c
fix(gridster): destroy resize_api
...
Call `resize_api.destroy()` to fix memory leak.
Closes #473
2015-04-14 11:43:23 +02:00
Javi Sánchez-Marín
595a94f1bd
fix(gridster): ensure widget dimensions and coords are always ints
...
Thanks to @sogawa for reporting
2015-04-14 11:39:55 +02:00
David Morse
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
David Morse
385cc757ac
bring the Demo's into master for testing & Automate the updates to gh-pages branch
2015-04-10 12:26:54 -06:00
David Morse
69f9c81d48
Update Samples
2015-04-09 08:37:29 -06:00
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
8f6d18ea9a
Release v0.6.6
2015-04-08 09:44:39 -06:00
David Morse
853e1fc72e
Update Readme
2015-04-08 09:37:06 -06:00
David Morse
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
David Morse
4e2697e3d4
Merge remote-tracking branch 'yfix/gridster.js.git/master'
...
* yfix/gridster.js.git/master:
2015-04-08 08:36:18 -06:00
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
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
David Morse
35ba767c55
Merge remote-tracking branch 'Tropicalista/gridster.js/master'
2015-04-07 22:25:02 -06:00
David Morse
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
David Morse
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
David Morse
6d5e8ed248
Merge remote-tracking branch 'joaoafrmartins/gridster.js/master'
...
* joaoafrmartins/gridster.js/master:
commonjs
support UMD
2015-04-07 22:09:10 -06:00
David Morse
3810daef1b
Merge remote-tracking branch 'Toosick/gridster.js/patch-1'
...
* Toosick/gridster.js/patch-1:
Update jquery.gridster.js
Fix gridster destroy
2015-04-07 21:51:55 -06:00
David Morse
84598f6862
Merge remote-tracking branch 'mooglemoogle/gridster.js/master'
...
* mooglemoogle/gridster.js/master:
Added destroy of widget coords and resize api
Added ability to specify scroll container for drag/resize
2015-04-07 21:36:00 -06:00
David Morse
e7509f0220
Merge remote-tracking branch 'bfarka/gridster.js/fix-trailing-comma'
...
* bfarka/gridster.js/fix-trailing-comma:
fix issue #469
2015-04-07 20:03:36 -06:00
David Morse
72007139cb
Merge remote-tracking branch 'sogawa/gridster.js/strict-sort'
...
* sogawa/gridster.js/strict-sort:
Convert to integer type of property value when sorting.
add element "#qunit-testresult"
rename test files.
2015-04-07 19:56:44 -06:00
David Morse
acd80b4039
Merge remote-tracking branch 'Roger-Waters/gridster.js'
...
* Fix spelling mistake
2015-04-07 19:30:34 -06:00
David Morse
5b1dfbec94
Merge remote-tracking branch 'ducksboard/bug-493-jquery-no-global-fail'
...
* ducksboard/bug-493-jquery-no-global-fail:
Fix for bug #493 including unit tests to prove.
2015-04-07 19:24:36 -06:00
David Morse
cec85c59a7
Merge remote-tracking branch 'eric/master'
...
Grunt changes
Add an optional final parameter to add_widget.
Bumping to v0.5.7
Grunt
Fix Widget Right Edge Collission Detection
re-name model_id parameter
add model_id parameter to add_widget method in order to create a relationship between widget and backbone model
Fix the memory leak that was incorrectly iterating rows and columns
Cache $(window) and $(this) selectors for performance
fix (Gridster.js): destroy resize_api
2015-04-07 13:50:05 -06:00