From 154cbab69af704ef233d974ca184407d89c2b5b6 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Tue, 18 Nov 2014 11:18:50 +0100 Subject: [PATCH] Fix broken s9y_links popup. References #227 --- templates/2k11/admin/serendipity_editor.js.tpl | 7 ++++++- templates/2k11/admin/style.css | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index dc5357ab..ae85b131 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -1202,8 +1202,13 @@ $(function() { {if $use_backendpopups} if($('#dashboard').length > 0) { $('.toggle_links').click(function(e) { - e.preventDefault(); $('#s9y_links').toggleClass('mfp-hide'); + + // We might want to make this reuseable + e.preventDefault(); + $('html, body').animate({ + scrollTop: $($(this).attr('href')).offset().top + }, 1000); }); } {else} diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css index f89f420c..2e02246f 100644 --- a/templates/2k11/admin/style.css +++ b/templates/2k11/admin/style.css @@ -988,6 +988,7 @@ input[type=checkbox], .media_choose figure, .media_file_metadata dt, #serendipity_comments_list details, +#dashboard > #s9y_links, .configure_plugin .cke { clear: both; } @@ -1653,7 +1654,8 @@ form > .button_link:first-of-type, } .mfp-content #edit_entry_category, -.mfp-content #edit_entry_freetags { +.mfp-content #edit_entry_freetags, +.mfp-content #s9y_links { background: #fcfcfc; margin: 0 auto; padding: 0 2em;