|
@@ -1333,7 +1333,7 @@ function UnreadTopics()
|
|
|
if ($is_topics)
|
|
|
{
|
|
|
$context['recent_buttons'] = array(
|
|
|
- 'markread' => array('text' => !empty($context['no_board_limits']) ? 'mark_as_read' : 'mark_read_short', 'image' => 'markread.png', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=' . (!empty($context['no_board_limits']) ? 'all' : 'board' . $context['querystring_board_limits']) . ';' . $context['session_var'] . '=' . $context['session_id']),
|
|
|
+ 'markread' => array('text' => !empty($context['no_board_limits']) ? 'mark_as_read' : 'mark_read_short', 'image' => 'markread.png', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['are_sure_mark_read'] . '\');"', 'url' => $scripturl . '?action=markasread;sa=' . (!empty($context['no_board_limits']) ? 'all' : 'board' . $context['querystring_board_limits']) . ';' . $context['session_var'] . '=' . $context['session_id']),
|
|
|
);
|
|
|
|
|
|
if ($context['showCheckboxes'])
|
|
@@ -1350,7 +1350,7 @@ function UnreadTopics()
|
|
|
elseif (!$is_topics && isset($context['topics_to_mark']))
|
|
|
{
|
|
|
$context['recent_buttons'] = array(
|
|
|
- 'markread' => array('text' => 'mark_as_read', 'image' => 'markread.png', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';' . $context['session_var'] . '=' . $context['session_id']),
|
|
|
+ 'markread' => array('text' => 'mark_as_read', 'image' => 'markread.png', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['are_sure_mark_read'] . '\');"', 'url' => $scripturl . '?action=markasread;sa=unreadreplies;topics=' . $context['topics_to_mark'] . ';' . $context['session_var'] . '=' . $context['session_id']),
|
|
|
);
|
|
|
|
|
|
if ($context['showCheckboxes'])
|