mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 14:13:46 +09:00
- fixed forms preview by overlay;
- fixed profile submit and wrong $user_id from um_user();
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user