aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar romibi <romibi@bluewin.ch> 2017-06-21 13:35:35 +0200
committerGravatar romibi <romibi@bluewin.ch> 2017-06-21 13:35:35 +0200
commitd4cd72dd21a8bb9c959ac23311b24bc334ee0f8e (patch)
tree746e48fc147e694868c438a6cd54ca0cd9e2443f /p/scripts
parentd5c168b30810575b3e28a0dafd6acd68a035dec1 (diff)
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();
}