Skip to content

Commit

Permalink
Fix - Invoice design changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lekhnathpandey committed Feb 8, 2024
1 parent 9bd202a commit dd66b7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/css/my-account-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@
padding-right: 20px;
overflow: hidden;
overflow-x: auto;
margin-top: 15px;

table {
border-collapse: collapse;
Expand Down
7 changes: 7 additions & 0 deletions assets/js/admin/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4982,7 +4982,14 @@
.hasClass("ur-general-setting-multiple_choice")
) {
URFormBuilder.render_multiple_choice($any_siblings);
} else if (
$any_siblings
.closest(".ur-general-setting-block")
.hasClass("ur-general-setting-subscription_plan")
) {
URFormBuilder.render_subscription_plan($any_siblings);
}

}

$(document.body).trigger("ur_field_option_changed", [
Expand Down
2 changes: 1 addition & 1 deletion includes/abstracts/abstract-ur-form-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public function get_field_general_settings() {
}
$disabled = '';
// To make invite code field name non editable.
if ( 'learndash_course' === $value || 'invite_code' === $value || 'profile_pic_url' === $value ) {
if ( 'learndash_course' === $value || 'invite_code' === $value || 'profile_pic_url' === $value || 'subscription_plan' === $value ) {
$disabled = 'disabled';
}
$general_setting_wrapper .= $extra_attribute . ' ' . $disabled . '/>';
Expand Down

0 comments on commit dd66b7e

Please sign in to comment.