gottfrois / dashing-rails

The exceptionally handsome dashboard framework for Rails.
MIT License
1.45k stars 149 forks source link

Dashing.gridsterLayout: unrecognized expression: [data-row^=] #61

Closed bennyscetbun closed 9 years ago

bennyscetbun commented 9 years ago

Hi Jquery throw an error when i try to use Dashing.gridsterLayout

Uncaught Error: Syntax error, unrecognized expression: [data-row^=] jquery.js?body=1:1474 Sizzle.errorjquery.js?body=1:2088 Sizzle.tokenizejquery.js?body=1:2489 Sizzle.selectjquery.js?body=1:880 Sizzlejquery.js?body=1:2705 jQuery.fn.extend.findjquery.js?body=1:2822 jQuery.fn.initjquery.js?body=1:74 jQuerydashing.gridster.js?body=1:7 Dashing.gridsterLayouttest:63 (anonymous function)

I have found that if you change the line 9 of dashing.gridster.coffee from

  widgets = $("[data-row^=]")

to

  widgets = $("[data-row]")

Your code works fine :)

gottfrois commented 9 years ago

Great :) Feel free to submit a PR