mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 14:25:55 +00:00
do not show edit note prompt when article is shown in zoom mode
This commit is contained in:
@@ -3156,7 +3156,7 @@
|
||||
|
||||
$rv['content'] .= "<div id=\"POSTNOTE-$id\">";
|
||||
if ($line['note']) {
|
||||
$rv['content'] .= format_article_note($id, $line['note']);
|
||||
$rv['content'] .= format_article_note($id, $line['note'], !$zoom_mode);
|
||||
}
|
||||
$rv['content'] .= "</div>";
|
||||
|
||||
@@ -3444,11 +3444,11 @@
|
||||
|
||||
}
|
||||
|
||||
function format_article_note($id, $note) {
|
||||
function format_article_note($id, $note, $allow_edit = true) {
|
||||
|
||||
$str = "<div class='articleNote' onclick=\"editArticleNote($id)\">
|
||||
<div class='noteEdit' onclick=\"editArticleNote($id)\">".
|
||||
__('(edit note)')."</div>$note</div>";
|
||||
($allow_edit ? __('(edit note)') : "")."</div>$note</div>";
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user