PluginProbe
ElasticPress / 4.6.1
ElasticPress v4.6.1
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
elasticpress / assets / js / admin.js

admin.js in ElasticPress 4.6.1, at assets/js/admin.js

27 lines 453 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * WordPress dependencies.
3 */
4 import domReady from '@wordpress/dom-ready';
5
6 /**
7 * Initialize.
8 *
9 * @returns {void}
10 */
11 const init = () => {
12 /**
13 * If '.wp-header-end' is found, append the notices after it.
14 */
15 const headerEnd = document.getElementById('ep-wp-header-end');
16 const notices = document.querySelectorAll('div.update-nag');
17
18 for (const notice of notices) {
19 headerEnd.after(notice);
20 }
21 };
22
23 /**
24 * Initialize.
25 */
26 domReady(init);
27