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

View file

@ -3156,7 +3156,7 @@
$rv['content'] .= "<div id=\"POSTNOTE-$id\">"; $rv['content'] .= "<div id=\"POSTNOTE-$id\">";
if ($line['note']) { if ($line['note']) {
$rv['content'] .= format_article_note($id, $line['note']); $rv['content'] .= format_article_note($id, $line['note'], !$zoom_mode);
} }
$rv['content'] .= "</div>"; $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)\"> $str = "<div class='articleNote' onclick=\"editArticleNote($id)\">
<div class='noteEdit' onclick=\"editArticleNote($id)\">". <div class='noteEdit' onclick=\"editArticleNote($id)\">".
__('(edit note)')."</div>$note</div>"; ($allow_edit ? __('(edit note)') : "")."</div>$note</div>";
return $str; return $str;
} }