do not show edit note prompt when article is shown in zoom mode

This commit is contained in:
Andrew Dolgov 2013-01-23 12:22:07 +04:00
parent a6a9b81264
commit 16cbc19a8a
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}