codemirror
2 years ago
datatables
2 years ago
admin-page.js
2 years ago
content-order-sort.js
2 years ago
custom-admin-menu.js
2 years ago
external-permalinks.js
2 years ago
gutenberg-content-duplication.js
2 years ago
hide-admin-notices.js
2 years ago
jBox.all.min.js
2 years ago
jquery.jsticky.mod.js
2 years ago
jquery.jsticky.mod.min.js
2 years ago
jquery.mjs.nestedSortable.js
2 years ago
jquery.ui.touch-punch.min.js
2 years ago
js.cookie.min.js
2 years ago
media-replace.js
2 years ago
multiple-user-roles.js
2 years ago
toggle-hidden-menu.js
2 years ago
toggle-hidden-menu.js
34 lines
| 1 | (function( $ ) { |
| 2 | 'use strict'; |
| 3 | |
| 4 | $(document).ready( function() { |
| 5 | |
| 6 | $('#toplevel_page_asenha_hide_hidden_menu').hide(); |
| 7 | |
| 8 | // Show hidden menu items |
| 9 | |
| 10 | $('#toplevel_page_asenha_show_hidden_menu a').on( 'click', function(e) { |
| 11 | e.preventDefault(); |
| 12 | $('#toplevel_page_asenha_show_hidden_menu').hide(); |
| 13 | $('#toplevel_page_asenha_hide_hidden_menu').show(); |
| 14 | $('.menu-top.asenha_hidden_menu').toggleClass('hidden'); |
| 15 | $('.wp-menu-separator.asenha_hidden_menu').toggleClass('hidden'); |
| 16 | |
| 17 | $(document).trigger('wp-window-resized'); |
| 18 | }); |
| 19 | |
| 20 | // Hide menu items set for hiding |
| 21 | |
| 22 | $('#toplevel_page_asenha_hide_hidden_menu a').on( 'click', function(e) { |
| 23 | e.preventDefault(); |
| 24 | $('#toplevel_page_asenha_show_hidden_menu').show(); |
| 25 | $('#toplevel_page_asenha_hide_hidden_menu').hide(); |
| 26 | $('.menu-top.asenha_hidden_menu').toggleClass('hidden'); |
| 27 | $('.wp-menu-separator.asenha_hidden_menu').toggleClass('hidden'); |
| 28 | |
| 29 | $(document).trigger('wp-window-resized'); |
| 30 | }); |
| 31 | |
| 32 | }); |
| 33 | |
| 34 | })( jQuery ); |