]> git.wh0rd.org Git - tt-rss.git/commitdiff
add separate class for virtual cats to prevent resorting
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 29 Aug 2008 08:05:24 +0000 (09:05 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 29 Aug 2008 08:05:24 +0000 (09:05 +0100)
feedlist.js
functions.php
tt-rss.css

index 7620dab52ddfb905e9a8b6c8e0e7f0d635b1e90d..98d5f5a0f116717eb623c920b758e7400a0be71b 100644 (file)
@@ -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);
index f097e19103d8165bf5618a737ee368b68037e257..8d8f254211ad349baa2ccf9f019d654879fadd32 100644 (file)
                                $inner_title_class = "catTitleNL";
                        }
 
-                       print "<li class=\"feedCat\" id=\"FCAT-$cat_id\">
+                       if ($cat_id > 0) {
+                               $cat_class = "feedCat";
+                       } else {
+                               $cat_class = "virtCat";
+                       }
+
+                       print "<li class=\"$cat_class\" id=\"FCAT-$cat_id\">
                                <img onclick=\"toggleCollapseCat($cat_id)\" class=\"catCollapse\"
                                        title=\"".__('Click to collapse category')."\"
                                        src=\"images/cat-collapse.png\"><span class=\"$inner_title_class\" 
index 3e97c6f315d0dfabdbdc8976e0d08fa08c6c37f5..e3d5abc5926c6547a74b1121ca761399ccce595e 100644 (file)
@@ -80,7 +80,7 @@ ul.feedList {
        font-family : "Lucida Grande", Tahoma, Arial, sans-serif;
 }
 
-ul.feedList li.feedCat {
+ul.feedList li.feedCat, ul.feedList li.virtCat {
        margin : 0px;
        padding : 3px 0px 3px 0px;
        color : #707070;
@@ -91,12 +91,12 @@ ul.feedList img.catCollapse {
        cursor : pointer;
 }
 
-ul.feedList li.feedCat span.catTitle {
+ul.feedList span.catTitle {
        color : #707070;
        cursor : pointer;
 }
 
-ul.feedList li.feedCat span.catTitle:hover {
+ul.feedList span.catTitle:hover {
        color : #4684ff;
 }