mirror of https://github.com/zulip/zulip.git
static/js/settings_org.js: Rename func which updates msg-topic-edit-pencil.
Rename `toggle_allow_message_editing_pencil` to `update_message_topic_editing_pencil` in `settings_org.js`. As this function update the pencil icon for updating message topic in message row header.
This commit is contained in:
parent
06cabc1e8a
commit
d360a70523
|
@ -42,7 +42,7 @@ set_global('settings_display', {
|
|||
|
||||
set_global('settings_org', {
|
||||
reset_realm_default_language: noop,
|
||||
toggle_allow_message_editing_pencil: noop,
|
||||
update_message_topic_editing_pencil: noop,
|
||||
update_message_retention_days: noop,
|
||||
update_realm_description: noop,
|
||||
});
|
||||
|
|
|
@ -37,7 +37,7 @@ set_global('templates', {
|
|||
settings_org.reset();
|
||||
settings_org.populate_realm_domains();
|
||||
settings_org.reset_realm_default_language();
|
||||
settings_org.toggle_allow_message_editing_pencil();
|
||||
settings_org.update_message_topic_editing_pencil();
|
||||
settings_org.update_realm_description();
|
||||
settings_org.update_message_retention_days();
|
||||
settings_org.populate_auth_methods();
|
||||
|
|
|
@ -94,7 +94,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
|||
_.each(event.data, function (value, key) {
|
||||
page_params['realm_' + key] = value;
|
||||
if (key === 'allow_message_editing') {
|
||||
settings_org.toggle_allow_message_editing_pencil();
|
||||
settings_org.update_message_topic_editing_pencil();
|
||||
}
|
||||
});
|
||||
if (event.data.authentication_methods !== undefined) {
|
||||
|
|
|
@ -70,7 +70,7 @@ exports.reset_realm_default_language = function () {
|
|||
$("#id_realm_default_language").val(page_params.realm_default_language);
|
||||
};
|
||||
|
||||
exports.toggle_allow_message_editing_pencil = function () {
|
||||
exports.update_message_topic_editing_pencil = function () {
|
||||
if (!meta.loaded) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue