PATH:
home
/
letacommog
/
winwithd
/
wp-content
/
plugins
/
paid-member-subscriptions
/
assets
/
js
/
admin
/* * JavaScript for Subscription Plan User Roles meta-box that is attached to the * Subscription Plan custom post type * */ jQuery( function($) { // Define meta-box jQuery object $metaBox = $('#pms_subscription_user_roles'); /* * Enable user role select drop-down when clicking on the correct radio button * */ $(document).on( 'click', 'input[name=pms_subscription_plan_user_role_option]', function() { $metaBox.find('select[name=pms_subscription_plan_user_role_existing]').attr( 'disabled', true ); if( $(this).is(':checked') && $(this).parents('.pms-meta-box-field-wrapper').find('select').length > 0 ) { $(this).parents('.pms-meta-box-field-wrapper').find('select').attr( 'disabled', false ); } }); $(document).ready( function() { if( $metaBox.find('input[value=existing]').is(':checked') ) { $metaBox.find('select[name=pms_subscription_plan_user_role_existing]').attr( 'disabled', false ); } }); });
[+]
..
[-] submenu-page-payments-page.js
[edit]
[-] submenu-page-settings-page.js
[edit]
[-] cpt-subscription.js
[edit]
[-] submenu-page-addons-page.js
[edit]
[-] meta-box-subscription-details.js
[edit]
[-] submenu-page-uninstall-page.js
[edit]
[-] submenu-page-export-page.js
[edit]
[-] submenu-page-members-page.js
[edit]
[-] meta-box-post-content-restriction.js
[edit]
[-] submenu-page-reports-page.js
[edit]
[+]
libs
[-] setup-wizard.js
[edit]
[-] meta-box-subscription-user-roles.js
[edit]