add separate class for virtual cats to prevent resorting
This commit is contained in:
parent
9d393c84da
commit
364e391e82
|
@ -382,7 +382,7 @@ function feedlist_init() {
|
||||||
|
|
||||||
init_collapsable_feedlist(getInitParam("theme"));
|
init_collapsable_feedlist(getInitParam("theme"));
|
||||||
|
|
||||||
Sortable.create('feedList', {onChange: feedlist_dragsorted});
|
Sortable.create('feedList', {onChange: feedlist_dragsorted, only: "feedCat"});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedlist/init", e);
|
exception_error("feedlist/init", e);
|
||||||
|
|
|
@ -4095,7 +4095,13 @@
|
||||||
$inner_title_class = "catTitleNL";
|
$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\"
|
<img onclick=\"toggleCollapseCat($cat_id)\" class=\"catCollapse\"
|
||||||
title=\"".__('Click to collapse category')."\"
|
title=\"".__('Click to collapse category')."\"
|
||||||
src=\"images/cat-collapse.png\"><span class=\"$inner_title_class\"
|
src=\"images/cat-collapse.png\"><span class=\"$inner_title_class\"
|
||||||
|
|
|
@ -80,7 +80,7 @@ ul.feedList {
|
||||||
font-family : "Lucida Grande", Tahoma, Arial, sans-serif;
|
font-family : "Lucida Grande", Tahoma, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.feedList li.feedCat {
|
ul.feedList li.feedCat, ul.feedList li.virtCat {
|
||||||
margin : 0px;
|
margin : 0px;
|
||||||
padding : 3px 0px 3px 0px;
|
padding : 3px 0px 3px 0px;
|
||||||
color : #707070;
|
color : #707070;
|
||||||
|
@ -91,12 +91,12 @@ ul.feedList img.catCollapse {
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.feedList li.feedCat span.catTitle {
|
ul.feedList span.catTitle {
|
||||||
color : #707070;
|
color : #707070;
|
||||||
cursor : pointer;
|
cursor : pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.feedList li.feedCat span.catTitle:hover {
|
ul.feedList span.catTitle:hover {
|
||||||
color : #4684ff;
|
color : #4684ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue