From: Andrew Dolgov Date: Fri, 29 Aug 2008 08:05:24 +0000 (+0100) Subject: add separate class for virtual cats to prevent resorting X-Git-Tag: 1.2.27~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=364e391e82ccd02e4e50ddd8ed7944f358d9025e;p=tt-rss.git add separate class for virtual cats to prevent resorting --- diff --git a/feedlist.js b/feedlist.js index 7620dab5..98d5f5a0 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 f097e191..8d8f2542 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 "