From 364e391e82ccd02e4e50ddd8ed7944f358d9025e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Aug 2008 09:05:24 +0100 Subject: [PATCH] add separate class for virtual cats to prevent resorting --- feedlist.js | 2 +- functions.php | 8 +++++++- tt-rss.css | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/feedlist.js b/feedlist.js index 7620dab52..98d5f5a0f 100644 --- a/feedlist.js +++ b/feedlist.js @@ -382,7 +382,7 @@ function feedlist_init() { init_collapsable_feedlist(getInitParam("theme")); - Sortable.create('feedList', {onChange: feedlist_dragsorted}); + Sortable.create('feedList', {onChange: feedlist_dragsorted, only: "feedCat"}); } catch (e) { exception_error("feedlist/init", e); diff --git a/functions.php b/functions.php index f097e1910..8d8f25421 100644 --- a/functions.php +++ b/functions.php @@ -4095,7 +4095,13 @@ $inner_title_class = "catTitleNL"; } - print "
  • + if ($cat_id > 0) { + $cat_class = "feedCat"; + } else { + $cat_class = "virtCat"; + } + + print "