diff --git a/civicrm-ux.php b/civicrm-ux.php index 7d782fd..3206337 100755 --- a/civicrm-ux.php +++ b/civicrm-ux.php @@ -9,7 +9,7 @@ * Plugin Name: WP CiviCRM UX * Plugin URI: https://github.com/agileware/wp-civicrm-ux * Description: A better user experience for integrating WordPress and CiviCRM - * Version: 1.7.0 + * Version: 1.7.1 * Author: Agileware * Author URI: https://agileware.com.au/ * License: GPL-2.0+ @@ -24,7 +24,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'CIVICRM_UXVERSION', '1.7.0' ); +define( 'CIVICRM_UXVERSION', '1.7.1' ); // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { diff --git a/public/js/civicrm-ux-public.js b/public/js/civicrm-ux-public.js index 113497d..02e27ed 100755 --- a/public/js/civicrm-ux-public.js +++ b/public/js/civicrm-ux-public.js @@ -2,8 +2,9 @@ 'use strict'; $(function() { - if(wp.CiviCRM_UX.is_recur_default) { - jQuery(':input[name=is_recur]').prop('checked', 'checked') + if(wp.CiviCRM_UX.is_recur_default && !jQuery(':input[name=is_recur]').prop('disabled')) { + jQuery('.is_recur-section :input').prop('disabled', false); + jQuery(':input[name=is_recur]').prop('checked', 'checked'); } });