mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
common.js: Migrate common.js module to use IIFE module style.
This module was exposing its functions as globals. This PR fixes it use the IIFE module style that we use in our other modules.
This commit is contained in:
@@ -154,7 +154,7 @@ function create_message_object() {
|
||||
exports.create_message_object = create_message_object;
|
||||
|
||||
function compose_error(error_text, bad_input) {
|
||||
$('#send-status').removeClass(status_classes)
|
||||
$('#send-status').removeClass(common.status_classes)
|
||||
.addClass('alert-error')
|
||||
.stop(true).fadeTo(0, 1);
|
||||
$('#error-msg').html(error_text);
|
||||
|
||||
Reference in New Issue
Block a user