fix JavaScript error

This commit is contained in:
vincentinttsh 2021-01-23 23:15:08 +08:00
parent a7daa7cda4
commit 559272ba6a

View File

@ -49,7 +49,6 @@ var mainWindow = {
main.departments.sort() main.departments.sort()
main.selectDepartment = main.departments[15] main.selectDepartment = main.departments[15]
}) })
.then(function () {
// Collapse Navbar // Collapse Navbar
var navbarCollapse = function () { var navbarCollapse = function () {
if ($("#mainNav").offset().top > 100) { if ($("#mainNav").offset().top > 100) {
@ -62,7 +61,6 @@ var mainWindow = {
navbarCollapse(); navbarCollapse();
// Collapse the navbar when page is scrolled // Collapse the navbar when page is scrolled
$(window).scroll(navbarCollapse); $(window).scroll(navbarCollapse);
})
}, },
methods: { methods: {
'login': function () { 'login': function () {