raviene / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

Multiple flexigrids on same web page might conflict #103

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When flexigrid is used multiple times on the same web page and at least one 
instance of flexigrid has 'usepager: false' the status line at the bottom of
those flexigrid tables that have 'usepager: true' is updated incorrectly.

The reason is that flexigrid searches the DOM for the right element to update 
starting from this.pDiv, but this.pDiv is not set if there is no status line. 
In that case the search for the DOM element starts at the
root element, so it will find all other flexigrid instances.

This commit fixes this issue. It also stores the relevant elements instead of 
searching through the DOM each time, which should make things slightly faster.

https://github.com/joto/flexigrid/commit/40f5ef4f102b498bc34bcb7c1111097cd6e2b0b
a

Soory, the commit is for an older version of flexigrid.

Original issue reported on code.google.com by jochen.t...@googlemail.com on 11 Feb 2012 at 9:08