1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-30 08:08:32 +00:00

3.5.16. Made hiding of shortened links an option. Added option to disable all FFZ notifications. Fixed deleted links from mods when links are disabled.

This commit is contained in:
SirStendec 2015-08-21 19:00:48 -04:00
parent 56392cd879
commit 3238fbcd68
10 changed files with 230 additions and 66 deletions

View file

@ -321,9 +321,19 @@ FFZ.prototype.build_ui_popup = function(view) {
menu.appendChild(el);
}
// Render Current Page
var page = (this._last_page || "channel").split("_", 1)[0];
this._ui_change_page(view, inner, menu, sub_container, page);
// Do we have news?
if ( this._has_news ) {
// Render news, then set the page back so our default doesn't change.
this._ui_change_page(view, inner, menu, sub_container, 'about_news');
this._last_page = page;
} else
// Render Current Page
this._ui_change_page(view, inner, menu, sub_container, page);
// Add the menu to the DOM.
this._popup = container;