ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on October 05, 2013, 04:22:30 pm

Title: more button
Post by: emanuele on October 05, 2013, 04:22:30 pm
Code: [Select]
		// Maybe they can modify the post (this is the more button)
if ($message['can_modify'] || ($context['can_report_moderator']))
echo '
<li class="listlevel1 subsections" aria-haspopup="true"><a', $message['can_modify'] && !empty($options['use_click_menu']) ? ' href="' . $scripturl . '?action=post;msg=' . $message['id'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . '"' : '', ' class="linklevel1 post_options">', $txt['post_options'], '</a>';

Is there any reason why the url is added to the "more" button only when the option "click-to-open" is enabled?
And in general: is there any reason why it is added at all?
Title: Re: more button
Post by: Antechinus on October 08, 2013, 05:59:07 pm
Yeah. It's coz it's handy to be able to use right click > open in new tab on top level bitz. I use it a lot. We talked about this before, and agreed that having the url only with teh clicky menus was good for that extra functionality (even if only some will know about that trick).

It had to go for hover menus, since people would mistakenly click even when the menus were set to hover, and then get the extra page instead of the droppy they really wanted. :)