]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/_global/js/restoreScroll.js
manage assets through npm
[github/wallabag/wallabag.git] / 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 331c9e1966f15277de78f475a2522858b39f767d..e63d06c695985b998d1eda35cfc2760be0e5294b 100644 (file)
@@ -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
+}