From: Andrew Dolgov Date: Tue, 15 May 2007 07:51:57 +0000 (+0100) Subject: compact some definitions in headlines list X-Git-Tag: schema_freeze_for_1.2.11~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=67343d9f9bb116fe609c9d75ed1bc9266d69c356;p=tt-rss.git compact some definitions in headlines list --- diff --git a/functions.js b/functions.js index 0677308f..fcb086b1 100644 --- a/functions.js +++ b/functions.js @@ -1109,6 +1109,9 @@ function toggleSelectListRow(sender) { } } +function tSR(sender) { + return toggleSelectRow(sender); +} function toggleSelectRow(sender) { var parent_row = sender.parentNode.parentNode; diff --git a/functions.php b/functions.php index d68a4506..8640884a 100644 --- a/functions.php +++ b/functions.php @@ -3653,13 +3653,13 @@ } if ($line["marked"] == "t" || $line["marked"] == "1") { - $marked_pic = "\"Reset"; + alt=\"Reset mark\" onclick='javascript:tMark($id)'>"; } else { - $marked_pic = "\"Set"; + alt=\"Set mark\" onclick='javascript:tMark($id)'>"; } # $content_link = "" . @@ -3693,11 +3693,11 @@ print ""; - print "$update_pic"; + print "$update_pic"; print " - + "; print "$marked_pic"; diff --git a/tt-rss.css b/tt-rss.css index e14dcfae..122bfa9f 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -774,7 +774,7 @@ table.headlinesList td.hlfeed { text-align : right; } -td.hlSelectRow, td.hlUpdatePic { +td.hlSelectRow, td.hlUpdPic { width : 25px; text-align : center; } diff --git a/viewfeed.js b/viewfeed.js index 49849c19..e9365dbc 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -288,6 +288,10 @@ function view(id, feed_id, skip_history) { } } +function tMark(id) { + return toggleMark(id); +} + function toggleMark(id) { if (!xmlhttp_ready(xmlhttp_rpc)) { @@ -297,7 +301,7 @@ function toggleMark(id) { var query = "backend.php?op=rpc&id=" + id + "&subop=mark"; - var mark_img = document.getElementById("FMARKPIC-" + id); + var mark_img = document.getElementById("FMPIC-" + id); var vfeedu = document.getElementById("FEEDU--1"); var crow = document.getElementById("RROW-" + id);