paulopmx / Flexigrid

Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml/json based data source using Ajax to load the content.
689 stars 538 forks source link

jquery 1.9.1 compatibility #95

Open michelreyes opened 11 years ago

michelreyes commented 11 years ago

How can i make the project compatible with jquery lastest releases like jquery 1.9.1?

NaomiN commented 11 years ago

The suggested version is working with the latest jquery. I downloaded it recently. I only found that trSelected class seems to behave slightly differently than before. I believe it used to attach immediately when I selected a row with the mouse. Now it only attaches after I click on the row. Is it possible to return the original behavior or have some flag to have that behavior?

NaomiN commented 11 years ago

See also https://github.com/paulopmx/Flexigrid/issues/70

michelreyes commented 11 years ago

not at all, in the line js, line #13 says var browser = $.browser and browser is not jquery 1.9.1 compatibility. i fixed that like this var browser = navigator.userAgent.toLowerCase();

tux-rampage commented 11 years ago

I can confirm this issue.

tux-rampage commented 11 years ago

jQuery migrate will help as a workaround: https://github.com/jquery/jquery-migrate/

michelreyes commented 11 years ago

you'r right, but i prefer to use: var browser = navigator.userAgent.toLowerCase(); you'r choice is the best, because you can fix some others library's problems with that.

tux-rampage commented 11 years ago

As stated by @NaomiN, this is a duplicate. Thanks for pointing this out.