Closed aw3s0me closed 10 years ago
Looks like you are using the source files. The jquery.gridster.extras.js only contains the additional functions for gridster - not gridster itself. You should include the files of the dist-folder (then the jquery.gridster.with-extras.js includes the content of jquery.gridster.js too) - if your dist-folder doesn't exist, you need to generate it using grunt (see Gruntfile.js in the repo)
Thank you so much. Problem has been solved.
I use gridster, here is my code: gridster: { deps: [ " jquery", "vendor/gridster/src/jquery.gridster.extras", "vendor/gridster/src/jquery.coords", "vendor/gridster/src/jquery.collision", "vendor/gridster/src/jquery.draggable", "vendor/gridster/src/utils" ] },
blockMargin = 0 in both cases and dx=dy=50
Full error msg: Uncaught TypeError: Cannot set property 'widgets_in_col' of undefined jquery.gridster.extras.js:5 (anonymous function) jquery.gridster.extras.js:5 (anonymous function) jquery.gridster.extras.js:165