docbrown/app/assets/javascripts/initializers
Vaidehi Joshi f04b0a7336
Display site-wide announcements (#8301)
* Serialize broadcast_data within AsyncInfoController::base_data

Adds a `broadcast:` key to our `base_data`, regardless of whether a user is logged in or not.
If a broadcast is not present, passes along a `nil` value.

* Initialize active broadcast (if present) when rendering main page

* Allow admins to preview a broadcast's processed_html when editing

* Add some fixed position styling to active broadcast

* Add system specs around broadcasts on homepage

* Use sanitize in place of html_safe when previewing broadcast

* Do not initialize broadcast if no broadcastData available

* Render default value on broadcast in options_for_select

* JS cleanup

* Unset fixed positioning for static navbar config

Also add some default styling for an active broadcast
2020-06-08 13:52:53 -04:00
..
initializeAdditionalContentBoxes.js [deploy] Bulk Fetch Follow Button Data for Users (#7676) 2020-05-08 13:58:58 -05:00
initializeAllChatButtons.js Fix JS Lints (#3815) 2019-08-26 18:01:12 -04:00
initializeAllFollowButts.js Layout updates (#8107) 2020-06-04 16:12:17 +02:00
initializeAllTagEditButtons.js Fix 'use strict' lints (#4414) [ci skip] 2019-10-14 13:46:15 -04:00
initializeArchivedPostFilter.js Fix 'use strict' lints (#4414) [ci skip] 2019-10-14 13:46:15 -04:00
initializeArticleDate.js [deploy] Home Page Feed redesign + top comments (#7579) 2020-05-12 07:57:57 -05:00
initializeArticleReactions.js [deploy] Add ARIA checked attribute to article reaction buttons (#7100) 2020-04-06 18:53:09 -04:00
initializeBaseTracking.js.erb Add page view tracking to comment permalinks 2020-05-23 14:08:28 -04:00
initializeBaseUserData.js [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
initializeBodyData.js Display site-wide announcements (#8301) 2020-06-08 13:52:53 -04:00
initializeBroadcast.js Display site-wide announcements (#8301) 2020-06-08 13:52:53 -04:00
initializeCommentDate.js Fix lint in initializeCommentDate.js (#4319) [ci skip] 2019-10-09 14:33:52 -04:00
initializeCommentDropdown.js Copy to clipboard fixes including support for Android Native Bridge (#7382) 2020-04-21 10:36:49 -04:00
initializeCommentPreview.js Fix Runkit tags not being activated when comment is added (#6767) 2020-05-15 14:27:46 +02:00
initializeCommentsPage.js.erb [deploy] Optimization: Remove Comment Count From Aysnc user_data (#8174) 2020-06-01 10:38:57 -05:00
initializeCreditsPage.js Refactor: initializeCreditsPage.js (#4312) [ci skip] 2019-10-08 12:33:28 -04:00
initializeDashboardSort.js Refactor: initializeDashboardSort.js (#4313) 2019-10-09 10:32:27 -04:00
initializeDrawerSliders.js Home Feed Tabs - Crayonsified (#7976) 2020-05-27 14:48:18 +02:00
initializeEllipsisMenu.js Fixed some more Frontend Lint Issues (#3792) 2019-08-23 10:21:28 -04:00
initializeFooterMod.js Guard for presence of page-content in JS (#5138) [deploy] 2019-12-16 14:02:59 -05:00
initializeHeroBannerClose.js [deploy] Remove hardcoded banner exit code (#7018) 2020-04-02 12:08:13 -04:00
initializeLocalStorageRender.js [deploy] Bulk Fetch Follow Button Data for Users (#7676) 2020-05-08 13:58:58 -05:00
initializeOnboardingTaskCard.js [deploy] Remove ERB pre-processing from pure JS files and cleanup (#8030) 2020-05-27 08:25:39 -05:00
initializePodcastPlayback.js [deploy] Podcast Player native bridge calls refactor to use message based communication (#8054) 2020-05-27 11:14:31 -04:00
initializePWAFunctionality.js Open /connect sidecar links in iframe (#5203) [deploy] 2019-12-21 15:46:36 -05:00
initializeReadingListIcons.js [deploy] Home Page Feed redesign + top comments (#7579) 2020-05-12 07:57:57 -05:00
initializeSettings.js Layout updates (#8107) 2020-06-04 16:12:17 +02:00
initializeSpecialNavigationFunctionality.js Add current state to nav bar links properly (#8045) 2020-05-25 12:00:21 -04:00
initializeSponsorshipVisibility.js New sidebar navigation (#7212) 2020-04-15 18:16:33 +02:00
initializeStylesheetAppend.js.erb Initial commit 2018-02-28 16:11:08 -05:00
initializeSwipeGestures.js Initial commit 2018-02-28 16:11:08 -05:00
initializeTimeFixer.js Refactor initializeTimeFixer.js (#4416) 2019-10-17 08:05:45 -04:00
initializeTouchDevice.js Crayons'ifizing Header (#6780) [deploy] 2020-03-26 12:21:53 -04:00
initializeUserProfilePage.js Hide report-abuse on current_user profile (#4460) [ci skip] 2019-10-23 14:57:36 -04:00
initNotifications.js NOT MERGE Add tabs to Crayons and to the notifications page (#7737) 2020-05-14 11:38:57 +02:00
initScrolling.js [deploy] Remove ERB pre-processing from pure JS files and cleanup (#8030) 2020-05-27 08:25:39 -05:00