- fixed forms preview by overlay;

- fixed profile submit and wrong $user_id from um_user();
This commit is contained in:
nikitasinelnikov
2019-11-29 19:08:17 +02:00
parent ed334bdf0b
commit 31e84f3e11
6 changed files with 29 additions and 17 deletions
@@ -301,4 +301,18 @@
background: #fff;
box-sizing: border-box;
width: 100%;
}
.um-admin-preview-overlay {
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(255,255,255,0);
z-index: 100;
}
#UM_preview_form .um-admin-modal-body {
position: relative;
}
@@ -139,6 +139,11 @@ function um_admin_modal_ajaxcall( act_id, arg1, arg2, arg3 ) {
}
if ( act_id === 'um_admin_preview_form' ) {
//fix for overlay in scrollable preview modal
jQuery('.um-admin-preview-overlay').css('height', jQuery('.um-admin-preview-overlay').siblings('.um').outerHeight(true)*1 + 20 + 'px' );
}
um_init_tooltips();
um_admin_init_datetimepicker();
+2 -1
View File
@@ -1054,7 +1054,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
UM()->fields()->editing = true;
}
$output = do_shortcode('[ultimatemember form_id="' . $arg1 . '" /]');
$output = '<div class="um-admin-preview-overlay"></div>';
$output .= do_shortcode('[ultimatemember form_id="' . $arg1 . '" /]');
break;