aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-19 17:05:19 +0200
committerGravatar GitHub <noreply@github.com> 2017-08-19 17:05:19 +0200
commit771d3b5ca39f8fa7290d08e33f5f512856497987 (patch)
treeffbf488b5b842b8f2c4376444e9080fb9c213bcb /p/scripts
parentf09039b1da9c49dc616277f47b3deef1ca92f127 (diff)
parentd4cd72dd21a8bb9c959ac23311b24bc334ee0f8e (diff)
Merge pull request #1589 from romibi/ft-dynamic-feedlist-padding
Make feedlist padding a bit dynamic
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 5be7bc36b..0fc6ca30b 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -541,9 +541,18 @@ function init_column_categories() {
feed_web = $(this).data('fweb'),
template = $('#feed_config_template').html().replace(/------/g, feed_id).replace('http://example.net/', feed_web);
$(this).attr('href', '#dropdown-' + feed_id).prev('.dropdown-target').attr('id', 'dropdown-' + feed_id).parent().append(template);
+ $('.tree-folder-items .dropdown-close a').click(function(){
+ $('.tree').removeClass('treepadding');
+ $(document.body).trigger("sticky_kit:recalc");
+ });
}
});
+ $('.tree-folder-items .dropdown-toggle').click(function(){
+ $('.tree').addClass('treepadding');
+ $(document.body).trigger("sticky_kit:recalc");
+ });
+
init_sticky_column();
}