summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-01-23 12:22:07 +0400
committerAndrew Dolgov <[email protected]>2013-01-23 12:22:07 +0400
commit16cbc19a8a79584356e1cb3c9a549de169c908e5 (patch)
tree995c91f9234b0d6e8bdaf2bd85e22ffb51262c30
parenta6a9b81264634492634993382727b640bf3aa23a (diff)
do not show edit note prompt when article is shown in zoom mode
-rw-r--r--include/functions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 0ee058086..62d64e247 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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;
}