X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2F_global%2Fjs%2FrestoreScroll.js;fp=src%2FWallabag%2FCoreBundle%2FResources%2Fpublic%2Fthemes%2Fmaterial%2Fjs%2FrestoreScroll.js;h=e63d06c695985b998d1eda35cfc2760be0e5294b;hb=5ecdfcd041767c9e3244a92bb0a6cc3c3f80fea3;hp=331c9e1966f15277de78f475a2522858b39f767d;hpb=9f95b14dec88cf083cefa38d5fbd84189e07acac;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/public/themes/material/js/restoreScroll.js b/app/Resources/static/themes/_global/js/restoreScroll.js similarity index 78% rename from src/Wallabag/CoreBundle/Resources/public/themes/material/js/restoreScroll.js rename to app/Resources/static/themes/_global/js/restoreScroll.js index 331c9e19..e63d06c6 100644 --- a/src/Wallabag/CoreBundle/Resources/public/themes/material/js/restoreScroll.js +++ b/app/Resources/static/themes/_global/js/restoreScroll.js @@ -8,7 +8,7 @@ function supportsLocalStorage() { function savePercent(id, percent) { if (!supportsLocalStorage()) { return false; } - localStorage["poche.article." + id + ".percent"] = percent; + localStorage["wallabag.article." + id + ".percent"] = percent; return true; } @@ -16,10 +16,10 @@ function retrievePercent(id) { if (!supportsLocalStorage()) { return false; } var bheight = $(document).height(); - var percent = localStorage["poche.article." + id + ".percent"]; + var percent = localStorage["wallabag.article." + id + ".percent"]; var scroll = bheight * percent; $('html,body').animate({scrollTop: scroll}, 'fast'); return true; -} \ No newline at end of file +}