Remove narrow.from_popover()

(imported from commit 5214955658cdbd652777dda1c4351d89b5f220af)
This commit is contained in:
Zev Benjamin 2013-02-12 17:43:37 -05:00
parent bcd0bb80e1
commit d3f92eeab6
2 changed files with 3 additions and 9 deletions

View File

@ -12,7 +12,7 @@
{{#if narrowed}}
<li>
<a onclick="narrow.from_popover(); narrow.activate([], {target_id: {{message.id}} });">
<a onclick="ui.hide_actions_popover(); narrow.activate([], {target_id: {{message.id}} });">
<i class="icon-time"></i> Narrow to messages around this time
</a>
</li>
@ -20,14 +20,14 @@
{{#if message.is_stream}}
<li>
<a onclick="narrow.from_popover(); narrow.by_subject({{message.id}});">
<a onclick="ui.hide_actions_popover(); narrow.by_subject({{message.id}});">
<i class="icon-bullhorn"></i>
Narrow to this subject on stream <b>{{message.display_recipient}}</b>
</a>
</li>
{{else}}
<li>
<a onclick="narrow.from_popover(); narrow.by_recipient({{message.id}});">
<a onclick="ui.hide_actions_popover(); narrow.by_recipient({{message.id}});">
<i class="icon-user"></i>
Narrow to this private message conversation
</a>

View File

@ -271,12 +271,6 @@ exports.by = function (operator, operand, opts) {
exports.activate([[operator, operand]], opts);
};
// Helper function for the actions popover
exports.from_popover = function (message_id) {
ui.hide_actions_popover();
exports.target(message_id);
};
exports.by_subject = function (target_id) {
var original = message_dict[target_id];
if (original.type !== 'stream') {