PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 1.7.3
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v1.7.3
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
← All changes | bws_menu/js/bws_menu.js +45 -33 1.9.1 → 1.7.3 View file →
@@ -1,46 +1,58 @@
1 1 (function($) {
2 2 $(document).ready( function() {
3 - var product = $( '.bws_product_box' ),
3 + /* new version */
4 + var product = $( '.bws_product' ),
4 5 max = 0;
5 6 $( product ).each( function () {
6 - if ( $( this ).height() > max )
7 - max = $( this ).height();
8 - });
9 - $( '.bws_product_box' ).css( 'height', max + 'px' );
7 + if ( $( this ).outerHeight( true ) > max )
8 + max = $( this ).outerHeight( true );
9 + });
10 + $( '.bws_product' ).css( 'height', max + 'px' );
10 11
11 - if ( $( '.bws-filter' ).length ) {
12 - var prvPos = $( '.bws-filter' ).offset().top;
13 - var maxPos = prvPos + $( '.bws-products' ).outerHeight() - $( '.bws-filter' ).outerHeight();
12 + var product_links = $( '.bws_product_links' );
13 + max = 0;
14 + $( product_links ).each( function () {
15 + if ( $( this ).innerHeight() > max )
16 + max = $( this ).innerHeight();
17 + });
18 + max = max - parseInt( $( '.bws_product_links' ).css( 'padding-top' ) ) - parseInt( $( '.bws_product_links' ).css( 'padding-bottom' ) );
19 + $( '.bws_product_links' ).css( 'height', max + 'px' );
20 +
21 + $( '.bws_product_box' ).hover( function() {
22 + if ( $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).length > 0 ) {
23 + $( this ).children( '.bws_product' ).addClass( 'bws_product_pro' );
24 + $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).css( 'display', 'block' );
25 + $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_icon' ).css( 'display', 'none' );
26 + $( this ).children( '.bws_product' ).children( '.bws_product_button' ).css( 'display', 'inline-block' );
27 + }
28 + }, function() {
29 + if ( $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).length > 0 ) {
30 + $( this ).children( '.bws_product' ).removeClass( 'bws_product_pro' );
31 + $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_description' ).css( 'display', 'none' );
32 + $( this ).children( '.bws_product' ).children( '.bws_product_content' ).children( '.bws_product_icon' ).css( 'display', 'block' );
33 + $( this ).children( '.bws_product' ).children( '.bws_product_button' ).css( 'display', 'none' );
34 + }
35 + });
14 36
15 - $( window ).scroll( function() {
16 - if ( $( window ).width() > 580 ) {
17 - var scrPos = Number( $( document ).scrollTop() ) + 40;
18 - if ( scrPos > maxPos ) {
19 - $( '.bws-filter' ).removeClass( 'bws_fixed' );
20 - } else if ( scrPos > prvPos ) {
21 - $( '.bws-filter' ).addClass( 'bws_fixed' );
22 - } else {
23 - $( '.bws-filter' ).removeClass( 'bws_fixed' );
24 - }
25 - }
26 - });
37 + /* old version */
38 + if ( $( 'input[name="bwsmn_form_email"]' ).val() == '' ) {
39 + $( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
27 40 }
28 - $( '.bws-menu-item-icon' ).click( function() {
29 - if ( $( this ).hasClass( 'bws-active' ) ) {
30 - $( this ).removeClass( 'bws-active' );
31 - $( '.bws-nav-tab-wrapper, .bws-help-links-wrapper' ).hide();
41 +
42 + $( '.bws_system_info_meta_box .hndle' ).click( function() {
43 + if ( $( '.bws_system_info_meta_box .inside' ).is( ':visible' ) ) {
44 + $( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
32 45 } else {
33 - $( this ).addClass( 'bws-active' );
34 - $( '.bws-nav-tab-wrapper, .bws-help-links-wrapper' ).css( 'display', 'inline-block' );
35 - }
46 + $( '.bws_system_info_meta_box .inside' ).css( 'display', 'block' );
47 + }
36 48 });
37 - $( '.bws-filter-top h2' ).click( function() {
38 - if ( $( '.bws-filter-top' ).hasClass( 'bws-opened' ) ) {
39 - $( '.bws-filter-top' ).removeClass( 'bws-opened' );
49 +
50 + $( '.bws_system_info_meta_box .handlediv' ).click( function() {
51 + if ( $( '.bws_system_info_meta_box .inside' ).is( ':visible' ) ) {
52 + $( '.bws_system_info_meta_box .inside' ).css( 'display', 'none' );
40 53 } else {
41 - $( '.bws-filter-top' ).addClass( 'bws-opened' );
42 - }
54 + $( '.bws_system_info_meta_box .inside' ).css( 'display', 'block' );
55 + }
43 56 });
44 -
45 57 });
46 58 })(jQuery);