Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes from the community #511

Open
wants to merge 296 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
9099da8
Also added parseInt to the add_faux_cols method
rept Sep 10, 2014
ddf8bbd
support UMD
joaoafrmartins Sep 16, 2014
17b1013
commonjs
joaoafrmartins Sep 16, 2014
a14669e
Merge pull request #1 from ducksboard/master
yfix Oct 15, 2014
821264d
Fix gridster destroy
Nov 17, 2014
7dbd7a6
Update jquery.gridster.js
Nov 17, 2014
41ad5c9
Added ability to specify scroll container for drag/resize
Nov 18, 2014
d09dea2
fix issue #469
Nov 21, 2014
0fe7f23
fix (Gridster.js): destroy resize_api
Dec 1, 2014
bd8dbf8
Added destroy of widget coords and resize api
Dec 2, 2014
975e389
rename test files.
sogawa Dec 17, 2014
913462f
add element "#qunit-testresult"
sogawa Dec 17, 2014
7026f0f
Accepting Resize API pull request. @props tormoalto
ericmann Dec 17, 2014
0ad0b3b
Convert to integer type of property value when sorting.
sogawa Dec 17, 2014
4d6abc8
Cache $(window) and $(this) selectors for performance
ericmann Dec 17, 2014
4fe62c9
Fix the memory leak that was incorrectly iterating rows and columns
ericmann Dec 17, 2014
e773e9d
add model_id parameter to add_widget method in order to create a rela…
Dec 31, 2014
34b5372
re-name model_id parameter
Dec 31, 2014
b0bedc6
delete jquery dependency
veeamGMBH Jan 15, 2015
d91ddd7
Fix spelling mistake
Feb 4, 2015
4287b56
Fix Widget Right Edge Collission Detection
ericmann Feb 17, 2015
da5e223
Grunt
ericmann Feb 17, 2015
c9b9757
Bumping to v0.5.7
ericmann Feb 17, 2015
a391304
fix(gridster): changed the way widgets were getting positioned so tha…
Feb 18, 2015
754b313
Release v0.6.0
Feb 18, 2015
afd83fe
fix(gridster): fixing drag limit issues when using autogrow_cols
Feb 21, 2015
dbc226d
fix(gridster): fixed expand_widget bug not expanding full width of wi…
Feb 21, 2015
9ead8c0
Release v0.6.1
Feb 21, 2015
749f37a
fix(gridster): forcing height of gridster container to auto when in c…
Feb 24, 2015
d669045
Release v0.6.2
Feb 24, 2015
61572cd
fix(gridster): fixes bug where widgets would overlay other widgets af…
Feb 24, 2015
04e2cf7
Merge pull request #2 from DecksterTeam/resize-overlap
fhawkes Feb 24, 2015
fa29663
fix(gridster): adding bower.json file
Feb 25, 2015
5f86f98
Merge branch 'master' of github.com:DecksterTeam/gridster.js
Feb 25, 2015
7654437
fix(gridster): adding bower.json file
Feb 25, 2015
c0a2bde
Fix for bug #493 including unit tests to prove.
Mar 3, 2015
14e08d9
refactor(gridster): adding callback to add_widget function
Mar 4, 2015
6bb47dc
fix(gridster): fixing resize limits when in fixed width mode
Mar 6, 2015
fc75ce5
Release v0.6.3
Mar 6, 2015
41a183b
Add an optional final parameter to add_widget.
ericmann Mar 6, 2015
7db7add
Grunt changes
ericmann Mar 6, 2015
ee7b5be
Merge in fade changes
ericmann Mar 6, 2015
ec253ac
Change jQuery reference for $.
diogobenica Mar 16, 2015
02a1580
Include move_widget function (Move a widget to a specific row and col…
Mar 17, 2015
c261a4e
add function move_widget in dist/jquery.gridster.js
Mar 17, 2015
8a5a723
#3 Adds ability to automatically center widgets in the grid.
Mar 19, 2015
e40a393
Release v0.6.4
Mar 19, 2015
16a7a65
#3 Adds ability to automatically center widgets in the grid.
Mar 19, 2015
aa8f4bf
Move the check for responsive width above the calculations of width. …
Apr 5, 2015
3ec0c6f
Move the check for responsive width above the calculations of width. …
Apr 5, 2015
86053f8
fix(gridster): fixed bugs in centering_widgets (widgets were getting …
Apr 6, 2015
bbd9cd4
Release v0.6.5
Apr 6, 2015
f8d3d2d
Release v0.6.5
Apr 6, 2015
d5bf56c
chore(grunt): fixing versioning system
Apr 6, 2015
ec430f8
Merge branch 'master' of https://github.com/DecksterTeam/gridster.js
Apr 7, 2015
4783e6e
fix a NAN error that could occur if using center_widget if the grid w…
Apr 7, 2015
37d8e0e
Merge from abril/gridster.js
Apr 7, 2015
cec85c5
Merge remote-tracking branch 'eric/master'
Apr 7, 2015
5b1dfbe
Merge remote-tracking branch 'ducksboard/bug-493-jquery-no-global-fail'
Apr 8, 2015
acd80b4
Merge remote-tracking branch 'Roger-Waters/gridster.js'
Apr 8, 2015
7200713
Merge remote-tracking branch 'sogawa/gridster.js/strict-sort'
Apr 8, 2015
e7509f0
Merge remote-tracking branch 'bfarka/gridster.js/fix-trailing-comma'
Apr 8, 2015
84598f6
Merge remote-tracking branch 'mooglemoogle/gridster.js/master'
Apr 8, 2015
3810dae
Merge remote-tracking branch 'Toosick/gridster.js/patch-1'
Apr 8, 2015
6d5e8ed
Merge remote-tracking branch 'joaoafrmartins/gridster.js/master'
Apr 8, 2015
85bc2f4
Merge remote-tracking branch 'rept/gridster.js/addition_problem_add_f…
Apr 8, 2015
0b08e1f
Merge remote-tracking branch 'aegisrunestone/gridster.js/master'
Apr 8, 2015
35ba767
Merge remote-tracking branch 'Tropicalista/gridster.js/master'
Apr 8, 2015
0d9d5c2
Merge remote-tracking branch 'dragonier/gridster.js/master'
Apr 8, 2015
56e9f62
Merge remote-tracking branch 'AWhetter/gridster.js/fix_doc_typo'
Apr 8, 2015
7ee8824
Merge remote-tracking branch 'cpascu/gridster.js/faux-rows-patch'
Apr 8, 2015
524ed2b
Merge remote-tracking branch 'dasmall/gridster.js.git/master'
Apr 8, 2015
2acdff1
Merge remote-tracking branch 'AdrianTeh/gridster.js.git/master'
Apr 8, 2015
b87c011
Merge remote-tracking branch 'kwak27/gridster.js/fix_add_widget'
Apr 8, 2015
e77e8d7
Merge remote-tracking branch 'andreas-trad/gridster.js.git/patch-1'
Apr 8, 2015
c220ecf
Merge remote-tracking branch 'rebugger/gridster.js.git/resize-widget-…
Apr 8, 2015
4e2697e
Merge remote-tracking branch 'yfix/gridster.js.git/master'
Apr 8, 2015
a908eae
Merge remote-tracking branch 'Laboratory/gridster.js.git/master'
Apr 8, 2015
853e1fc
Update Readme
Apr 8, 2015
8f6d18e
Release v0.6.6
Apr 8, 2015
0862812
Fix my merge error from the merge from remote-tracking branch 'cpascu…
Apr 9, 2015
0cd0af9
Merge from dustmoo/gridster.js
Apr 9, 2015
f29ab73
Merge from dustmoo/gridster.js
Apr 9, 2015
59b475d
Merge commit '6eb521015cda5212f6fa92492dbe4050bd92e00c'
Apr 9, 2015
69f9c81
Update Samples
Apr 9, 2015
385cc75
bring the Demo's into master for testing & Automate the updates to g…
Apr 10, 2015
7af6bf7
Add unit testing for core API, ensure all demos work, and add unit te…
Apr 13, 2015
595a94f
fix(gridster): ensure widget dimensions and coords are always ints
vieron Apr 13, 2015
b162932
fix(gridster): destroy resize_api
Dec 1, 2014
ccbac1f
chore: bump up jquery version to 2.1.3
vieron Apr 14, 2015
446852a
feat(gridster): Common.js support
joaoafrmartins Sep 16, 2014
9d077da
fix(gridster): preventing gridster from adding extra resize handles
Apr 14, 2015
12f4ab1
Revert "fix(gridster): preventing gridster from adding extra resize h…
Apr 14, 2015
6c5ef28
preventing gridster from creating extra resize handles while centering
Apr 14, 2015
0286676
Merge pull request #6 from DecksterTeam/dadams
fhawkes Apr 14, 2015
65f43a5
Release v0.6.6
Apr 14, 2015
43148b8
feat(gridster): browserify compatibility
vieron Apr 14, 2015
d3f25f3
feat(draggable): autoscrolling
vieron Apr 13, 2015
d947175
fix(gridster): wrong addition solved in add_faux_rows/cols by adding …
rept Sep 8, 2014
c622630
fix(gridster): changed "instanceof jQuery" to "instanceof $"
Sep 2, 2014
8080dac
docs(gridster): fixed a typo in Gridster class documentation
AWhetter Jul 10, 2014
93cd01e
chore(gridster): remove unused code
vieron Apr 16, 2015
2002c45
feat(gridster.css): remove possible default pading
vieron Apr 16, 2015
e258d59
tests(gridster): add basic test suite for gridster
vieron Apr 16, 2015
7de5bba
feat(gridster): add config to set custom show/hide widget methods
vieron Apr 16, 2015
cda560f
fix(gridster): `resize_widget` also accepts HTMLElements
vieron Apr 16, 2015
576b5ae
fix(gridster): ensure coords instances are destroyed on widgets
vieron Apr 16, 2015
3006d4f
style(jshint): add jshint config and setup grunt task
vieron Apr 16, 2015
9863656
style(jshint): adapt code to pass jshint
vieron Apr 16, 2015
57a2604
rev jquery version
Apr 16, 2015
3a696ad
0.6.7 release
Apr 16, 2015
e69c3e8
fix(gridster): responsive width now resizes based off wrapper not window
fhawkes Apr 22, 2015
8473bd6
update dependencies and jshint
Apr 29, 2015
9732b01
Merge commit 'e69c3e8f64aa4557ef032e4d0d8185e83b1aed21'
Apr 29, 2015
699fad9
Release v0.6.8
Apr 29, 2015
d220fd9
typo on "the" in "inactivity over the last year"
ericop May 12, 2015
244089c
Merge pull request #4 from ericop/patch-1
May 12, 2015
4d946ea
Fix bug with responsive layout if grid in wrapped in a container whic…
May 13, 2015
0a7ae2e
Add new demo page and allow two new features based on Issue #6:
May 15, 2015
fa6de00
Remove debug code
May 18, 2015
31aad41
Fix gridster width setting in responsive mode
May 18, 2015
79fc444
Fix grid calculations when wrapper/gridster element is not centered
May 18, 2015
d60dbd1
lint fix, generated dist
May 18, 2015
af979fa
fix initialization of sticky layout.
May 18, 2015
de59d89
Merge branch 'zeroedin-bill-master'
May 18, 2015
453cfaa
Fix issue where dragging a small widget up onto a bottom corner of an…
May 18, 2015
a2097cc
Fix undefined var reference to this.shift_widgets_up - should ref option
May 18, 2015
c92df60
Fix undefined exception in update_widgets_dimensions
May 18, 2015
08da4a4
fix unit tests
May 19, 2015
3cc6192
Merge branch 'master' of git://github.com/zeroedin-bill/gridster.js i…
May 19, 2015
610a143
Fix expanding widget issue (allow it to collapse again)
May 19, 2015
0c65f0a
JS Doc changes
May 20, 2015
d23aa41
Various bug fixes for moving widgets around
May 20, 2015
b0ead24
add unit test to build process
May 21, 2015
23ad30c
jspm config
plamoureux May 23, 2015
55377b9
jspm config
plamoureux May 23, 2015
e0074c6
jspm config
plamoureux May 23, 2015
75933da
jspm config
plamoureux May 23, 2015
f6f16af
jspm config
plamoureux May 23, 2015
9dcf169
jspm config
plamoureux May 23, 2015
ff73959
Don't ignore src, I need it to build with webpack.
May 26, 2015
8d3da5c
Fix invalid require('./jquery-gridster.js')
May 26, 2015
4cc6915
Remove if statement from register_widgets that cause them to be dropp…
May 27, 2015
34b08eb
Merge pull request #11 from zeroedin-bill/master
May 27, 2015
8183219
enable travis
May 27, 2015
589864c
travis config for bower
May 27, 2015
aa2053b
install bower & grunt globally for travis
May 27, 2015
b399504
Create a Ruby on Rails gem
ened May 27, 2015
35426a0
add badge for gem
May 28, 2015
0ab1348
Release v0.6.9
May 28, 2015
c17ebfd
fixed highlighting while resize is true
May 28, 2015
57bf55a
update ruby build config
May 29, 2015
8997809
update readme
May 29, 2015
4526b7f
RoR gem missed the Engine files
ened May 31, 2015
0d75ba5
Fixed `npm install` warning
ened May 31, 2015
b345264
Merge pull request #14 from ened/fix/package-json-url
May 31, 2015
278afda
Merge pull request #15 from ened/fix/rails-gem
May 31, 2015
aa598a5
Merge branch 'master' of https://github.com/dsmorse/gridster.js
May 31, 2015
c5da395
chore: update RoR build process
May 31, 2015
99e8736
make npm ready
Jun 1, 2015
393b4fc
chore: Merge remote-tracking branch 'spalger/master' - make npm ready
Jun 5, 2015
9abe8c2
chore: Merge remote-tracking branch 'josephndenton/master'
Jun 5, 2015
3c10135
chore: Merge remote-tracking branch 'mergeSource/master'
Jun 5, 2015
1bb8888
chore: convert from css to Less
Jun 5, 2015
1812366
feature: Add Chaos demo to test widget placement.
Jun 5, 2015
4936ef8
fix: convert from JQury to DOM
Jun 9, 2015
2b0f996
fix(gridster): Add additiona error checking on widgets removal
Jun 26, 2015
5cb5c68
Extended default options by two functions for displaying and hiding w…
Jun 29, 2015
e01c3a7
update jsdoc
Jun 30, 2015
413aad5
update generated files
Jun 30, 2015
6c2e2d4
update generated files
Jun 30, 2015
7cfda0d
Revert "update generated files"
Jun 30, 2015
137c05c
update generated files (2)
Jun 30, 2015
a1d77eb
Merge pull request #19 from heartdisease/master
Jun 30, 2015
f9b579a
Fix issue with the dragging of widgets pushing off to the right funny…
Nedlinin Aug 5, 2015
6a7a2c5
Build new distributable files.
Nedlinin Aug 5, 2015
af9abd8
Merge pull request #22 from Nedlinin/master
Aug 6, 2015
4d1beac
Remove 'bootstrap-typeahead-rails' require
randoum Aug 12, 2015
fb5b174
Merge pull request #23 from randoum/patch-1
Aug 12, 2015
f3ce227
Fix the responsive grid to be able to shrink.
emackey Aug 19, 2015
dfc6491
fix: Apply fix from #22 to vertical positioning
stenverbois Aug 23, 2015
df205b0
Merge pull request #26 from emackey/fix-responsive-grid
Aug 29, 2015
9930ae4
Merge pull request #27 from stenverbois/master
Aug 29, 2015
73b5712
Fire draggable.stop event after data attributes have been updated.
luke-browning Sep 18, 2015
a7ed9a4
Merge pull request #31 from luke-browning/master
Sep 18, 2015
f513793
fix(fn.generate_stylesheet): only return new stylesheet if colWidth and
Nov 18, 2015
63be0c5
Fix min width/height per widget not being calculated
alexandernst Dec 15, 2015
1e12718
Merge pull request #35 from ZachLiss/fix-stylesheet-generation
Dec 17, 2015
273e0ae
Fix issue where resizing a widget at the bottom of the screen can cau…
Jan 21, 2016
3c1525b
Merge pull request #38 from zeroedin-bill/master
Jan 22, 2016
9350577
Merge pull request #36 from alexandernst/master
Jan 22, 2016
4649062
add flag to make widgets only move down
stephwag Jan 25, 2016
bb529d4
Merge pull request #39 from stephwag/master
Jan 25, 2016
44ce33a
fix bug with sticky position widgets
Feb 26, 2016
e7d7b55
Merge pull request #43 from M0nter0/master
Feb 26, 2016
58b8f8a
Prep release of 0.7.0
Feb 26, 2016
6c053d4
Improved processing of cells that player initially occupies
DyckGerman Aug 23, 2016
3613220
Merge pull request #64 from DyckGerman/occupied-cells-processing-fix
Aug 24, 2016
96fe92f
Added to NPM, made name NPM friendly in package, added instructions
Dec 27, 2016
90096ff
Fix bug that shift widgets up when moving or resizing an upper widget…
pboucher1960 Jan 17, 2017
9341ae9
Merge pull request #73 from pboucher1960/issue_72_shift_widgets_up
Jan 19, 2017
bca5edb
Fix (gridster.js): Option collision.wait_for_mouseup: true and shift_…
Jan 25, 2017
1047bfe
Merge pull request #76 from anemmas/master
Jan 26, 2017
f2ea4a1
Merge pull request #71 from baconface/master
Jan 26, 2017
8776462
Add ignore_self_occupied option to allow gridster objects to be moved…
Feb 16, 2017
92024aa
Merge pull request #78 from Gfriedman21/master
Feb 18, 2017
dbe5000
feat($browser): get_offset
dennisvg111 Feb 23, 2017
fd950e8
fix($browser): fn.on_start_drag
dennisvg111 Feb 23, 2017
bde89d6
fix:($browser): fn.on_stop_drag inside widgets on max row
dennisvg111 Feb 23, 2017
e9f3b18
fix($compile) added missing semicolons
dennisvg111 Feb 23, 2017
a79d340
fix($browser): make fn.move_widget_down return a success bool, to pre…
dennisvg111 Feb 23, 2017
9be8f3c
fix($compile): semicolons, again
dennisvg111 Feb 23, 2017
e466551
fix($browser): move_widget_down
dennisvg111 Feb 24, 2017
9d58059
feat($browser): add_widget failure
dennisvg111 Feb 24, 2017
186e1e0
Merge pull request #81 from dennisvg111/draggablefixes
Feb 25, 2017
d280d7a
fix($compiling) added support for people using the deprecated limit: …
dennisvg111 Feb 27, 2017
5dcc08a
changed deprecated warning message to use single quotes
dennisvg111 Feb 27, 2017
4b7ff37
Merge pull request #82 from dennisvg111/draggablefixes
Feb 28, 2017
5e61584
$fix(build) update gruntfile so changing packagename won't break build
dennisvg111 Mar 20, 2017
3a1aa7b
$fix(build) build changes in src to dist
dennisvg111 Mar 20, 2017
a53bc5f
$fix(build) fix css build when package name is not gridster
dennisvg111 Mar 20, 2017
02cb3c5
$feat(browser) re-add ignore_self_occupied option
dennisvg111 Mar 20, 2017
1d74f3d
$feat(build) readded ignore_self_occupied to dist build
dennisvg111 Mar 20, 2017
b0fc5b8
Merge pull request #88 from dennisvg111/update_dist_build
Mar 20, 2017
d97b230
$fix(browser) fixed a minor issue with fn.set_limits
dennisvg111 Mar 21, 2017
dfe450e
$fix(build) changes build to dist version
dennisvg111 Mar 21, 2017
4b88901
$feat(browser) added a function to change the numbers of rows
dennisvg111 Mar 27, 2017
ef495c8
fn.resizable: limit
benjamindeclercq Mar 30, 2017
abd54ec
Revert "fn.resizable: limit"
benjamindeclercq Mar 30, 2017
a38df1d
fn.resizable: limit
benjamindeclercq Mar 30, 2017
7d8ca4e
Merge pull request #91 from BenjaminDeClercq/master
Mar 31, 2017
299d016
Merge pull request #90 from dennisvg111/fix_preview_maxleft
Mar 31, 2017
adfd1ff
updates allowing gridster to work with jquery 2.x and 3.x
detain Aug 17, 2017
fd080fe
updates forcing testing of both jquery 2 and 3
detain Aug 17, 2017
2808cd7
Merge pull request #100 from detain/master
dsmorse Aug 17, 2017
f1ee6eb
fix bug
Oct 16, 2017
eda54f4
fix: resizing an element from very large to very small was not possib…
alexnb Feb 14, 2018
8639a29
version 0.7.1
alexnb Feb 14, 2018
1c84797
version 0.7.1
alexnb Feb 14, 2018
28f116d
Merge pull request #103 from Mrjeff578575/master
leithhobson May 7, 2018
965a0dc
Updates the grunt-contrib-qunit package to the latest version
fixmycode Jul 17, 2018
c042e41
Update Gruntfile.js
progitter May 1, 2018
acc1c38
Revert "version 0.7.1"
alexnb Jul 20, 2018
56ecb6e
Revert "version 0.7.1"
alexnb Jul 20, 2018
7cf095d
Invalid domain gridster.net
mikegoodstadt Sep 12, 2018
7ddb55f
Update README for 0.8.0 gem instructions; update package.json to 0.8.…
Jan 10, 2019
2858049
Update README for 0.8.0 gem instructions; update package.json to 0.8.…
Jan 10, 2019
41fa954
Merge branch 'master' of github.com:kbroderick/gridster.js
Jan 10, 2019
d3ea15f
Merge pull request #130 from kbroderick/master
leithhobson May 28, 2019
6d418df
Merge pull request #120 from alexnb/modified-pr-112
leithhobson Sep 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ gh-pages/
demo/
.idea
.DS_Store
.idea
*.iml
vendor
*.gem
*.css.map
demos/assets/css/demo.css
103 changes: 103 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
// http://www.jshint.com/docs/
// Based on node-jshint@2.x.x

// ENFORCING OPTIONS
// These options tell JSHint to be more strict towards your code. Use them if
// you want to allow only a safe subset of JavaScript—very useful when your
// codebase is shared with a big number of developers with different skill
// levels.

"bitwise": true, //prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others
"camelcase": false, //force all variable names to use either camelCase style or UPPER_CASE with underscores
"curly": true, //requires you to always put curly braces around blocks in loops and conditionals
"eqeqeq": true, //prohibits the use of == and != in favor of === and !==
"es3": false, //tells JSHint that your code needs to adhere to ECMAScript 3 specification
"forin": false, //requires all `for in` loops to filter object's items with `hasOwnProperty()`
"immed": true, //prohibits the use of immediate function invocations without wrapping them in parentheses
"indent": 2, //enforces specific tab width
"latedef": true, //prohibits the use of a variable before it was defined
"newcap": true, //requires you to capitalize names of constructor functions
"noarg": true, //prohibits the use of `arguments.caller` and `arguments.callee`
"noempty": true, //warns when you have an empty block in your code
"nonew": true, //prohibits the use of constructor functions for side-effects
"plusplus": false, //prohibits the use of unary increment and decrement operators
"quotmark": true, //enforces the consistency of quotation marks used throughout your code
"undef": true, //prohibits the use of explicitly undeclared variables
"unused": "vars", //warns when you define and never use your variables
"strict": true, //requires all functions to run in ECMAScript 5's strict mode
"trailing": true, //makes it an error to leave a trailing whitespace in your code
"maxparams": false, //set the max number of formal parameters allowed per function
"maxdepth": 6, //control how nested do you want your blocks to be
"maxstatements": false, //set the max number of statements allowed per function
"maxcomplexity": false, //control cyclomatic complexity throughout your code

// RELAXING OPTIONS
// These options allow you to suppress certain types of warnings. Use them
// only if you are absolutely positive that you know what you are doing.

"asi": false, //suppresses warnings about missing semicolons
"boss": false, //suppresses warnings about the use of assignments in cases where comparisons are expected
"debug": false, //suppresses warnings about the debugger statements in your code
"eqnull": false, //suppresses warnings about == null comparisons
"esnext": false, //your code uses ES.next specific features such as const
"evil": false, //suppresses warnings about the use of eval
"expr": true, //suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls
"funcscope": false, //suppresses warnings about declaring variables inside of control structures while accessing them later from the outside
"globalstrict": false, //suppresses warnings about the use of global strict mode
"iterator": false, //suppresses warnings about the `__iterator__` property
"lastsemic": false, //suppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block
"laxbreak": false, //suppresses most of the warnings about possibly unsafe line breakings in your code
"laxcomma": false, //suppresses warnings about comma-first coding style
"loopfunc": false, //suppresses warnings about functions inside of loops
"moz": false, //tells JSHint that your code uses Mozilla JavaScript extensions
"multistr": false, //suppresses warnings about multi-line strings
"proto": false, //suppresses warnings about the `__proto__` property
"scripturl": false, //suppresses warnings about the use of script-targeted URLs—such as `javascript:...`
"smarttabs": false, //suppresses warnings about mixed tabs and spaces when the latter are used for alignmnent only
"shadow": false, //suppresses warnings about variable shadowing
"sub": false, //suppresses warnings about using `[]` notation when it can be expressed in dot notation
"supernew": false, //suppresses warnings about "weird" constructions like `new function () { ... }` and `new Object;`
"validthis": false, //suppresses warnings about possible strict violations when the code is running in strict mode and you use `this` in a non-constructor function

// ENVIRONMENTS
// These options pre-define global variables that are exposed by popular
// JavaScript libraries and runtime environments—such as browser or node.js.
// Essentially they are shortcuts for explicit declarations like
// /*global $:false, jQuery:false */

"browser": true, //defines globals exposed by modern browsers
"couch": false, //defines globals exposed by CouchDB
"devel": true, //defines globals that are usually used for logging poor-man's debugging: `console`, `alert`, etc.
"dojo": false, //defines globals exposed by the Dojo Toolkit
"jquery": true, //defines globals exposed by the jQuery JavaScript library
"mootools": false, //defines globals exposed by the MooTools JavaScript framework
"node": true, //defines globals available when your code is running inside of the Node runtime environment
"nonstandard": false, //defines non-standard but widely adopted globals such as `escape` and `unescape`
"phantom": false, //defines globals available when your core is running inside of the PhantomJS runtime environment
"qunit": true, //defines globals available when your core is running inside of the Qqunit runtime environment
"prototypejs": false, //defines globals exposed by the Prototype JavaScript framework
"rhino": false, //defines globals available when your code is running inside of the Rhino runtime environment
"worker": true, //defines globals available when your code is running inside of a Web Worker
"wsh": false, //defines globals available when your code is running as a script for the Windows Script Host
"yui": false, //defines globals exposed by the YUI JavaScript framework

"globals": {
"define": false,
"throttle": false,
"delay": false,
"debounce": false,
"jQuery": true,
"require": false,
"Gridster": false
},

// LEGACY
// These options are legacy from JSLint. Aside from bug fixes they will not
// be improved in any way and might be removed at any point.

"nomen": false, //disallows the use of dangling `_` in variables
"onevar": false, //allows only one `var` statement per function
"passfail": false, //makes JSHint stop on the first error or warning
"white": false //make JSHint check your source code against Douglas Crockford's JavaScript coding style
}
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!README.md
!LICENSE
!dist/**/*
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- "0.10"
install:
- npm install
- npm install -g bower grunt-cli
before_script:
- sed s#"2.1.3 - 3.99"#"^2.1.3"#g -i bower.json
- bower install
script:
- grunt build --verbose
- sed s#"\^2.1.3"#"^3"#g -i bower.json
- bower install
- grunt test --verbose
170 changes: 170 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,116 @@
<a name="v0.7.0"></a>
## v0.7.0 (2016-02-26)


#### Bug Fixes

* Apply fix from #22 to vertical positioning ([dfc64916](http://github.com/dsmorse/gridster.js/commit/dfc649168c5b6a2a230b90a47e19621a6937fc7c))
* convert from JQury to DOM ([4936ef82](http://github.com/dsmorse/gridster.js/commit/4936ef82c04690fde118c3d54b798ceaf7c376e6))
* **fn.generate_stylesheet:** only return new stylesheet if colWidth and this.$wrapper.width() are > 0 ([f513793a](http://github.com/dsmorse/gridster.js/commit/f513793a8c0ec63509f6296325a8a7a6e34179f5))
* **gridster:** Add additiona error checking on widgets removal ([2b0f9963](http://github.com/dsmorse/gridster.js/commit/2b0f9963ef80c9acc6f66545eb53597836e2ebec))

<a name="v0.6.10"></a>
### v0.6.10 (2015-05-31)
* Add Ruby on Rails support

<a name="v0.6.9"></a>
### v0.6.9 (2015-05-27)
* bug fixes for positions and overlap
* dist modified to support webpack deployements
* new 'sticky' layout option which allows widgets to be places absolutely into a position on the grid.

<a name="v0.6.8"></a>
### v0.6.8 (2015-04-28)


#### Bug Fixes

* **gridster:**
* responsive width now resizes based off wrapper not window ([e69c3e8f](http://github.com/dsmorse/gridster.js/commit/e69c3e8f64aa4557ef032e4d0d8185e83b1aed21))
* ensure coords instances are destroyed on widgets ([576b5ae3](http://github.com/dsmorse/gridster.js/commit/576b5ae3f0461b048d8ff9463509b860ffa8b194))
* `resize_widget` also accepts HTMLElements ([cda560f4](http://github.com/dsmorse/gridster.js/commit/cda560f4f3ca616d03d1e3230cd2ef4e69876d9c))
* changed "instanceof jQuery" to "instanceof $" ([c6226306](http://github.com/dsmorse/gridster.js/commit/c6226306c2ce9aa7d45d774d7de19088acba0c66))
* 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))
* preventing gridster from adding extra resize handles ([9d077da6](http://github.com/dsmorse/gridster.js/commit/9d077da676826606243c2552dc9997c492687203))
* destroy resize_api ([b1629326](http://github.com/dsmorse/gridster.js/commit/b16293268c6aa4be2ba0c8fb1b9806e590227606), closes [#473](http://github.com/dsmorse/gridster.js/issues/473))
* ensure widget dimensions and coords are always ints ([595a94f1](http://github.com/dsmorse/gridster.js/commit/595a94f1bdfaa4905ff51d9044e74105c81e6ff3))


#### Features

* **draggable:** autoscrolling ([d3f25f3f](http://github.com/dsmorse/gridster.js/commit/d3f25f3fbbcc738d8b3702d122533e64f37acd29))
* **gridster:**
* add config to set custom show/hide widget methods ([7de5bbab](http://github.com/dsmorse/gridster.js/commit/7de5bbabc0a01e8188a56881782dc74d6bf111d3))
* browserify compatibility ([43148b87](http://github.com/dsmorse/gridster.js/commit/43148b87e523352a7f9d01479c6fed3e87f46ba0))
* Common.js support ([446852a2](http://github.com/dsmorse/gridster.js/commit/446852a260aab2e7caf772a62fbde8b518c38816), closes [#434](http://github.com/dsmorse/gridster.js/issues/434))
* **gridster.css:** remove possible default pading ([2002c455](http://github.com/dsmorse/gridster.js/commit/2002c455957016cb441a317dbbb6e5f6662cb35a))

<a name="v0.6.7"></a>
### v0.6.7 (2015-04-16)

<a name="v0.6.6"></a>
### v0.6.6 (2015-04-08)

<a name="v0.6.5"></a>
### v0.6.5 (2015-04-06)


#### Bug Fixes

* **gridster:** fixed bugs in centering_widgets (widgets were getting smushed when being resized ([86053f8b](http://github.com/DecksterTeam/gridster.js/commit/86053f8be3d73a9db3d7eabc595324123dbcff13))

<a name="v0.6.4"></a>
### v0.6.4 (2015-03-19)


#### Bug Fixes

* **gridster:**
* added ability to center widgets in grid

<a name="v0.6.3"></a>
### v0.6.3 (2015-03-06)


#### Bug Fixes

* **gridster:**
* fixing resize limits when in fixed width mode feature(gridster): added fix_to_co ([6bb47dc1](http://github.com/DecksterTeam/gridster.js/commit/6bb47dc1ce36aef670b2acb7c244ec5f4ea440e0))

<a name="v0.6.2"></a>
### v0.6.2 (2015-02-23)


#### Bug Fixes

* **gridster:** forcing height of gridster container to auto when in collapsed mode ([749f37a5](http://github.com/DecksterTeam/gridster.js/commit/749f37a52074bd16362528f94ab28ec314379ee3))

<a name="v0.6.1"></a>
### v0.6.1 (2015-02-21)


#### Bug Fixes

* **gridster:**
* fixed expand_widget bug not expanding full width of window fix(gridster): user c ([dbc226d4](http://github.com/DecksterTeam/gridster.js/commit/dbc226d46c8224f753c07af6aff259785c60425f))
* fixing drag limit issues when using autogrow_cols ([afd83fea](http://github.com/DecksterTeam/gridster.js/commit/afd83fead8c719615ae01ef7b5d3863701ff2243))
* changed the way widgets were getting positioned so that margins are actually the ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))

<a name="v0.6.0"></a>
## v0.6.0 (2015-02-18)


#### Bug Fixes

* **gridster:** changed the way widgets were getting positioned so that margins are actually the ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))

#### Features

* **gridster:** make grid responsive ([a3913043](http://github.com/DecksterTeam/gridster.js/commit/a3913043579bae9f5ef28e34524ad7a8ae7dcafd))

<a name="v0.5.7"></a>
### v0.5.7 (2015-02-17)

<a name="v0.5.6"></a>
### v0.5.6 (2014-09-25)

Expand Down Expand Up @@ -183,3 +296,60 @@
* **gridster:** drag-and-drop widget resizing ([e1924053](http://github.com/ducksboard/gridster.js/commit/e19240532de0bad35ffe6e5fc63934819390adc5))
* **utils:** add delay helper to utils ([faa6c5db](http://github.com/ducksboard/gridster.js/commit/faa6c5db0002feccf681e9f919ed583eef152773))

dustmoo Modifications
===========
Changelog 2013-04-3

Fork now handles standard behavior properly with swap allowing larger widgets to shift down.

Changelog 2013-04-2

Added Demo to Repository.

Changelog 2013-02-27

Added "Static widget support" Static Items default to the "static" class.

You can customize this class by using the code below:

$.gridster({
static_class: 'custom_class',
draggable: {
items: ".gs_w:not(.custom_class)"
}
});

I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too.
This version is much more reliable in swapping space with widgets.

There are also new options for Maximum Rows and Maximum Columns:

$.gridster({
max_rows: map_rows,
max_cols: map_cols,
shift_larger_widgets_down: false
});

Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.


Changelog 11-26-2012

Reworked swapping functionality to better handle large to small widget handling.

---

Widgets of smaller or equal size to the dragged widget (player)
will swap places with the original widget.

This causes tiles to swap left and right as well as up and down.

By default smaller players will shift larger widgets down.

I have added an option to prevent this behavior:

$.gridster({
shift_larger_widgets_down: false
});

By setting shift_larger_widgets_down to false, smaller widgets will not displace larger ones.
57 changes: 57 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,60 @@ included in the project:

**IMPORTANT**: By submitting a patch, you agree to allow the project owner to
license your work under the same license as that used by the project.


#commit Message Guidelines
We use [automatic changelog creation](https://github.com/ajoslin/conventional-changelog), so it best if your commit messages follow the following conventions:

### Commit Message Format
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
format that includes a **type**, a **scope** and a **subject**:

```
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```

Any line of the commit message cannot be longer 100 characters! This allows the message to be easier
to read on github as well as in various git tools.

### Type
Must be one of the following:

* **feat**: A new feature
* **fix**: A bug fix
* **docs**: Documentation only changes
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
semi-colons, etc)
* **refactor**: A code change that neither fixes a bug or adds a feature
* **perf**: A code change that improves performance
* **test**: Adding missing tests
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
generation

### Scope
The scope could be anything specifying place of the commit change. For example `$location`,
`$browser`, `$compile`, `$rootScope`, `ngHref`, `ngClick`, `ngView`, etc...

### Subject
The subject contains succinct description of the change:

* use the imperative, present tense: "change" not "changed" nor "changes"
* don't capitalize first letter
* no dot (.) at the end

### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes"
The body should include the motivation for the change and contrast this with previous behavior.

### Footer
The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.

**Breaking Changes** are detected as such if the Body contains a line starting with
`BREAKING CHANGES:` The rest of the commit message is then used for this.

A detailed explanation can be found in this [document](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/).
Loading