diff --git a/feedlist.js b/feedlist.js index 98d5f5a0f..6eb7312f3 100644 --- a/feedlist.js +++ b/feedlist.js @@ -10,6 +10,20 @@ var mouse_x = 0; var resize_enabled = false; var counters_last_request = 0; +function toggle_sortable_feedlist(enabled) { + try { + + if (enabled) { + Sortable.create('feedList', {onChange: feedlist_dragsorted, only: "feedCat"}); + } else { + Sortable.destroy('feedList'); + } + + } catch (e) { + exception_error("toggle_sortable_feedlist", e); + } +} + function viewCategory(cat) { active_feed_is_cat = true; viewfeed(cat, '', true); @@ -382,7 +396,7 @@ function feedlist_init() { init_collapsable_feedlist(getInitParam("theme")); - Sortable.create('feedList', {onChange: feedlist_dragsorted, only: "feedCat"}); + toggle_sortable_feedlist(isFeedlistSortable()); } catch (e) { exception_error("feedlist/init", e); diff --git a/help/3.php b/help/3.php index 76c87c0d0..f6afb8579 100644 --- a/help/3.php +++ b/help/3.php @@ -28,6 +28,7 @@