PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
← All changes | js/adminimize.js +0 -31 1.11.11 → 1.9.1 View file →
@@ -21,36 +21,5 @@
21 21 $( this ).closest( '.postbox' ).toggleClass( 'closed' );
22 22 e.preventDefault();
23 23 } );
24 24
25 - // Close every box other than the first, to keep the page clean.
26 - $('.postbox:not(:first)').addClass('closed');
27 -
28 - // Open the box when the user clicks the shortcut
29 - $('#minimenu a').on('click',function(e){
30 - var ID = $(this).attr('href');
31 - $(ID).closest( '.postbox' ).removeClass('closed');
32 - });
33 -
34 - // Scroll to top
35 - $('.adminimize-scroltop').on('click',function(e){
36 - e.preventDefault();
37 - $('html,body').animate({scrollTop:0},700);
38 - });
39 -
40 - // Adminimize export switch
41 - $('#adminimize-toggle').on('click', function(e){
42 - var value = $(this).attr('checked');
43 - if ( value == 'checked'){
44 - $('#adminimize-export-role').css('display', 'none');
45 - $('#adminimize-export').css('display', 'block');
46 - } else {
47 - $('#adminimize-export-role').css('display', 'flex');
48 - $('#adminimize-export').css('display', 'none');
49 - }
50 - });
51 -
52 - $('#mw_adminimize_export_select_roles').select2({
53 - width: '100%'
54 - });
55 -
56 25 } );