1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Merge pull request #8043 from wallabag/fix-fab

Fix Floating Action Button
This commit is contained in:
Yassine Guedidi 2025-03-02 04:21:42 +01:00 committed by GitHub
commit f1ccc298ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,10 +262,10 @@ const articleScroll = () => {
const toggleScrollDataName = 'toggle-auto'; const toggleScrollDataName = 'toggle-auto';
if ((s + c) > articleElBottom) { if ((s + c) > articleElBottom) {
fixedActionBtn.data(toggleScrollDataName, true); fixedActionBtn.data(toggleScrollDataName, true);
fixedActionBtn.openFAB(); fixedActionBtn.floatingActionButton('open');
} else if (fixedActionBtn.data(toggleScrollDataName) === true) { } else if (fixedActionBtn.data(toggleScrollDataName) === true) {
fixedActionBtn.data(toggleScrollDataName, false); fixedActionBtn.data(toggleScrollDataName, false);
fixedActionBtn.closeFAB(); fixedActionBtn.floatingActionButton('close');
} }
}); });
} }
@ -289,6 +289,7 @@ $(document).ready(() => {
$('.tabs').tabs(); $('.tabs').tabs();
$('.tooltipped').tooltip(); $('.tooltipped').tooltip();
$('.fixed-action-btn').floatingActionButton();
initFilters(); initFilters();
initExport(); initExport();