wet-boew/wet-boew — pull request #3708 by masterbee (2013-11-22 05:22:30+00:00)
Title: Tables & Inview: leveraged Inview plugin to hook in scrollTop functionality for Tables

* Leveraged ```wb-inview``` plugin that allows for the implementor to program the behaviour of what happens when you use the pagination function if the table is not completely in view.
* **Potential Usability issue**: Next/Previous links do not nothing more than increment the counters and page results. Since these tables are dynamic in nature, there can be cases where the table is longer than the viewport, so the user would not see any changes to the table.
* Corrected this with an scrollTo function bound to the listen to the custom event "fnDrawTable" triggered by data tables when the table is redrawn ( via paging, etc ).
* Modified ```wb-inview``` slightly to report a state of all/partial/none on elements that require their viewport visiblity to be known.
* **For Consideration**: At a future state we may want to review the ```wb-inview``` to see if the new ```data-inviewstate``` is sufficient instead of having ```.pg-banner```, etc targeted via JS

/cc @thomasgohard