forked from wallabag/wallabag
Merge pull request #8043 from wallabag/fix-fab
Fix Floating Action Button
This commit is contained in:
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user