diff options
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/daily.html | 2 | ||||
-rw-r--r-- | tpl/default/js/shaarli.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tpl/default/daily.html b/tpl/default/daily.html index d8c91078..29d845d5 100644 --- a/tpl/default/daily.html +++ b/tpl/default/daily.html | |||
@@ -44,7 +44,7 @@ | |||
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | <div> | 46 | <div> |
47 | <h3 class="window-subtitle">{function="strftime('%A %d, %B %Y', $day)"}</h3> | 47 | <h3 class="window-subtitle">{function="format_date($dayDate, false)"}</h3> |
48 | 48 | ||
49 | <div id="plugin_zone_about_daily" class="plugin_zone"> | 49 | <div id="plugin_zone_about_daily" class="plugin_zone"> |
50 | {loop="$daily_about_plugin"} | 50 | {loop="$daily_about_plugin"} |
diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 30d8ed6f..edcf2809 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js | |||
@@ -255,10 +255,9 @@ window.onload = function () { | |||
255 | * Remove CSS target padding (for fixed bar) | 255 | * Remove CSS target padding (for fixed bar) |
256 | */ | 256 | */ |
257 | if (location.hash != '') { | 257 | if (location.hash != '') { |
258 | var anchor = document.querySelector(location.hash); | 258 | var anchor = document.getElementById(location.hash.substr(1)); |
259 | if (anchor != null) { | 259 | if (anchor != null) { |
260 | var padsize = anchor.clientHeight; | 260 | var padsize = anchor.clientHeight; |
261 | console.log(document.querySelector(location.hash).clientHeight); | ||
262 | this.window.scroll(0, this.window.scrollY - padsize); | 261 | this.window.scroll(0, this.window.scrollY - padsize); |
263 | anchor.style.paddingTop = 0; | 262 | anchor.style.paddingTop = 0; |
264 | } | 263 | } |