panels: Rename "desktop_notifications_panel" => "panels".

The original code made a 3/4-hearted effort to generically accommodate
more banners/"panels" later, but named itself after the first one made.

[greg: expanded commit message.]
This commit is contained in:
Brock Whittaker
2018-01-30 16:11:21 -08:00
committed by Greg Price
parent f485abf522
commit fe3a5665da
5 changed files with 6 additions and 6 deletions

View File

@@ -164,7 +164,7 @@
"hotspots": false,
"compose_ui": false,
"common": false,
"desktop_notifications_panel": false
"panels": false
},
"rules": {
"array-callback-return": "error",

View File

@@ -1,4 +1,4 @@
var desktop_notifications_panel = (function () {
var panels = (function () {
var exports = {};
@@ -71,5 +71,5 @@ return exports;
}());
if (typeof module !== 'undefined') {
module.exports = desktop_notifications_panel;
module.exports = panels;
}

View File

@@ -263,7 +263,7 @@ exports.resize_page_components = function () {
activity.update_scrollbar.users();
activity.update_scrollbar.group_pms();
desktop_notifications_panel.resize_app();
panels.resize_app();
};
var _old_width = $(window).width();

View File

@@ -280,7 +280,7 @@ $(function () {
compose.initialize();
hotspots.initialize();
ui.initialize();
desktop_notifications_panel.initialize();
panels.initialize();
});

View File

@@ -1115,7 +1115,7 @@ JS_SPECS = {
'js/ui_init.js',
'js/emoji_picker.js',
'js/compose_ui.js',
'js/desktop_notifications_panel.js'
'js/panels.js'
],
'output_filename': 'min/app.js'
},