mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user