mirror of https://github.com/zulip/zulip.git
billing: Use javascript onhashchange handler instead of jQuery one.
Makes it easier to obtain the onhashchange handler in node tests.
This commit is contained in:
parent
5fc538cac0
commit
b7d210a932
|
@ -97,10 +97,10 @@ exports.set_tab = function (page) {
|
|||
location.hash = this.hash;
|
||||
});
|
||||
|
||||
$(window).on('hashchange', function () {
|
||||
window.onhashchange = function () {
|
||||
$('#' + page + '-tabs.nav a[href="' + location.hash + '"]').tab('show');
|
||||
$('html').scrollTop(0);
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
exports.is_valid_input = function (elem) {
|
||||
|
|
Loading…
Reference in New Issue