From 67343d9f9bb116fe609c9d75ed1bc9266d69c356 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 15 May 2007 08:51:57 +0100 Subject: [PATCH] compact some definitions in headlines list --- functions.js | 3 +++ functions.php | 14 +++++++------- tt-rss.css | 2 +- viewfeed.js | 6 +++++- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/functions.js b/functions.js index 0677308f4..fcb086b1c 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 d68a4506f..8640884a3 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 e14dcfaea..122bfa9f8 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 49849c199..e9365dbcb 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);