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:
Vishnu Ks 2019-02-27 17:21:01 +05:30 committed by Tim Abbott
parent 5fc538cac0
commit b7d210a932
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ exports.set_tab = function (page) {
location.hash = this.hash; location.hash = this.hash;
}); });
$(window).on('hashchange', function () { window.onhashchange = function () {
$('#' + page + '-tabs.nav a[href="' + location.hash + '"]').tab('show'); $('#' + page + '-tabs.nav a[href="' + location.hash + '"]').tab('show');
$('html').scrollTop(0); $('html').scrollTop(0);
}); };
}; };
exports.is_valid_input = function (elem) { exports.is_valid_input = function (elem) {