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:
YJDave 2018-03-05 22:38:44 +05:30 committed by Tim Abbott
parent 06cabc1e8a
commit d360a70523
4 changed files with 4 additions and 4 deletions

View File

@ -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,
});

View File

@ -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();

View File

@ -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) {

View File

@ -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;
}