4teamwork/ftw.tabbedview — pull request #33 by jone (2014-03-27 13:50:40+00:00)
Title: Fix bug sometimes the default-tab setting did not work.

The bug is in combination with jquerytools-tab and jquerytools-history,
which caused the history plugin to trigger a tab reload when the default
tab was loaded because the location.hash was changed.

This behavior resulted in two tabs beeing loaded, the default tab and the
first tab of the view with incosistent behavior which of those tabs was
visible at the end.

The fix is here to terminate history events early as long as no actual
hash is in the URL, which is the case when intially loading the tabbed view.
When tabs are klicked the hash is added to the URL, which makes the history
events no longer beeing terminated and enables the default history behavior,
which is that the browser-back and -forward buttons cause the tabs beeing
reloaded correctly.

@maethu can you take a look at this one?
/cc @lukasgraf