mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
21 lines
435 B
JavaScript
21 lines
435 B
JavaScript
var stream_ui_updates = (function () {
|
|
|
|
var exports = {};
|
|
|
|
exports.update_check_button_for_sub = function (sub) {
|
|
var button = subs.check_button_for_sub(sub);
|
|
if (sub.subscribed) {
|
|
button.addClass("checked");
|
|
} else {
|
|
button.removeClass("checked");
|
|
}
|
|
};
|
|
|
|
return exports;
|
|
}());
|
|
|
|
if (typeof module !== 'undefined') {
|
|
module.exports = stream_ui_updates;
|
|
}
|
|
window.stream_ui_updates = stream_ui_updates;
|