1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 21:35:56 +00:00

update styling for unexpanded cdm; misc fixes related to collapsing

This commit is contained in:
Andrew Dolgov
2013-03-20 10:59:12 +04:00
parent c582bf25dd
commit 3ac153f1b3
3 changed files with 14 additions and 10 deletions

View File

@@ -1318,8 +1318,6 @@ function cdmCollapseArticle(event, id) {
var elem = $("CICD-" + id);
if (elem && row) {
row.removeClassName("Selected");
var collapse = $$("div#RROW-" + id +
" span[class='collapseBtn']")[0];
@@ -1344,6 +1342,8 @@ function cdmCollapseArticle(event, id) {
function cdmExpandArticle(id) {
try {
console.log("cdmExpandArticle " + id);
hideAuxDlg();
var elem = $("CICD-" + getActiveArticleId());
@@ -1551,7 +1551,6 @@ function cdmClicked(event, id) {
if (!event.ctrlKey) {
if (!getInitParam("cdm_expanded")) {
if (event) Event.stop(event);
return cdmExpandArticle(id);
} else {
@@ -1658,7 +1657,10 @@ function markHeadline(id, marked) {
check.attr("checked", marked);
}
row.addClassName("Selected");
if (marked)
row.addClassName("Selected");
else
row.removeClassName("Selected");
}
}