mirror of https://github.com/zulip/zulip.git
Remove narrow.from_popover()
(imported from commit 5214955658cdbd652777dda1c4351d89b5f220af)
This commit is contained in:
parent
bcd0bb80e1
commit
d3f92eeab6
|
@ -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>
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue