tnc-ba/strongTNC — pull request #157 by d22 (2014-05-04 08:02:53+00:00)
Title: Various broken views

Since commit 6e431bfea6c36ff46997b2b241600f51ae293f9d, many modal views are broken.

I managed to find the problem: It's this part of `paging.js`:

$(window).on('hashchange', function() {
if(!this.loading) {
this.grabURLParams();
this.getPage();
}
}.bind(this));

The problem is that on submitting the form, a redirect is initiated. For some reason (I don't know exactly where this occurs) the hash in the URL is removed, and then the redirect is supposed to occur.

Unfortunately, at that point in time the JS snippet above kicks in, re-adds the hash and reloads the paged list.

When removing this snippet, everything works as it's supposed to.

@d22, can you try to fix this? I don't know even really where to start.