Skip to content

Commit

Permalink
PROJ-1885 Ensure than recurring options are enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-fj committed Aug 5, 2021
1 parent d8da22c commit 5e424fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -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' ) ) {
Expand Down
5 changes: 3 additions & 2 deletions public/js/civicrm-ux-public.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});

Expand Down

0 comments on commit 5e424fb

Please sign in to comment.