mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Check if #back-to-top exists on admin page
This commit is contained in:
1 file changed
+3
-1
@@ -19,6 +19,7 @@
|
||||
|
||||
var settings = {...defaults, ...options};
|
||||
|
||||
if(document.getElementById(settings.buttonID)){
|
||||
let toTopButton = document.getElementById(settings.buttonID);
|
||||
|
||||
toTopButton.addEventListener("click", toTop);
|
||||
@@ -36,5 +37,6 @@
|
||||
toTopButton.classList.replace(settings.visibleClass, settings.hiddenClass);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
})();
|
||||
})();
|
||||
Reference in new issue
Block a user