mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 01:24:02 +00:00
Style fixes
(imported from commit 311600ad8627d7060f235f59852d77f73a951e81)
This commit is contained in:
@@ -305,22 +305,18 @@ function do_narrow(description, filter_function) {
|
|||||||
function narrow_huddle() {
|
function narrow_huddle() {
|
||||||
var recipients = get_selected_zephyr_row().find("span.zephyr_huddle_recipients_list").text();
|
var recipients = get_selected_zephyr_row().find("span.zephyr_huddle_recipients_list").text();
|
||||||
var message = "Showing group chats with " + recipients;
|
var message = "Showing group chats with " + recipients;
|
||||||
do_narrow(message,
|
do_narrow(message, function (element) {
|
||||||
function(element) {
|
return (element.find("span.zephyr_huddle_recipient").length > 0 &&
|
||||||
return (element.find("span.zephyr_huddle_recipient").length > 0 &&
|
element.find("span.zephyr_huddle_recipients_list").text() == recipients);
|
||||||
element.find("span.zephyr_huddle_recipients_list").text() == recipients);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function narrow_all_personals() {
|
function narrow_all_personals() {
|
||||||
// Narrow to all personals
|
// Narrow to all personals
|
||||||
var message = "Showing all personals";
|
var message = "Showing all personals";
|
||||||
do_narrow(message,
|
do_narrow(message, function (element) {
|
||||||
function(element) {
|
return (element.find("span.zephyr_personal_recipient").length > 0);
|
||||||
return (element.find("span.zephyr_personal_recipient").length > 0);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function narrow_personals() {
|
function narrow_personals() {
|
||||||
@@ -335,38 +331,32 @@ function narrow_personals() {
|
|||||||
other_party = target_recipient;
|
other_party = target_recipient;
|
||||||
}
|
}
|
||||||
var message = "Showing personals with " + other_party;
|
var message = "Showing personals with " + other_party;
|
||||||
do_narrow(message,
|
do_narrow(message, function (element) {
|
||||||
function(element) {
|
var recipient = element.find("span.zephyr_personal_recipient");
|
||||||
var recipient = element.find("span.zephyr_personal_recipient");
|
var sender = element.find("span.zephyr_sender");
|
||||||
var sender = element.find("span.zephyr_sender");
|
|
||||||
|
|
||||||
return ((recipient.length > 0) &&
|
return ((recipient.length > 0) &&
|
||||||
((recipient.text() == target_recipient) && (sender.text() == target_sender)) ||
|
((recipient.text() == target_recipient) && (sender.text() == target_sender)) ||
|
||||||
((recipient.text() == target_sender) && (sender.text() == target_recipient)));
|
((recipient.text() == target_sender) && (sender.text() == target_recipient)));
|
||||||
}
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function narrow_class(class_name) {
|
function narrow_class(class_name) {
|
||||||
var message = "Showing <span class='label zephyr_class'>" + class_name + "</span>";
|
var message = "Showing <span class='label zephyr_class'>" + class_name + "</span>";
|
||||||
do_narrow(message,
|
do_narrow(message, function (element) {
|
||||||
function(element) {
|
return (element.find("span.zephyr_class").length > 0 &&
|
||||||
return (element.find("span.zephyr_class").length > 0 &&
|
element.find("span.zephyr_class").text() == class_name);
|
||||||
element.find("span.zephyr_class").text() == class_name);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function narrow_instance(class_name, instance) {
|
function narrow_instance(class_name, instance) {
|
||||||
var message = "Showing <span class='label zephyr_class'>" + class_name
|
var message = "Showing <span class='label zephyr_class'>" + class_name
|
||||||
+ "</span> <span class='label zephyr_instance'>" + instance + "</span>";
|
+ "</span> <span class='label zephyr_instance'>" + instance + "</span>";
|
||||||
do_narrow(message,
|
do_narrow(message, function (element) {
|
||||||
function(element) {
|
return (element.find("span.zephyr_class").length > 0 &&
|
||||||
return (element.find("span.zephyr_class").length > 0 &&
|
element.find("span.zephyr_class").text() == class_name &&
|
||||||
element.find("span.zephyr_class").text() == class_name &&
|
element.find("span.zephyr_instance").text() == instance);
|
||||||
element.find("span.zephyr_instance").text() == instance);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function unhide() {
|
function unhide() {
|
||||||
|
|||||||
Reference in New Issue
Block a user