optikalefx / OpenJS-Grid

OpenJS Grid is the easiest jQuery Grid ever. With very little work you can have a data grid that can do everything from sorting and searching to complex database queries. Best of all, its open source. So you can learn how it's all done.
http://square-bracket.com/openjs
MIT License
96 stars 46 forks source link

Repeatedly clicking the headings too quickly doesn't enable enough time for the re-sort to happen and results in the "Loading..." message remaining forever. :( #43

Open SirFizX opened 10 years ago

Miqi180 commented 9 years ago

I had the same problem with some "hyperactive" users on my site, but there is a simple fix for it:

In grid.js:

sort : function(e,el) {

        //stop if user clicked headercell too many times
        if ( $(".dialog.gridNotify").is(":visible")) return false;

miqi180