mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
42 lines
790 B
JavaScript
42 lines
790 B
JavaScript
/**
|
|
This function updates the
|
|
builder area with fields
|
|
**/
|
|
|
|
function um_admin_update_builder(){
|
|
|
|
form_id = jQuery('.um-admin-builder').data('form_id');
|
|
|
|
jQuery('.tipsy').hide();
|
|
|
|
jQuery.ajax({
|
|
url: ultimatemember_ajax_url,
|
|
type: 'POST',
|
|
data: {action: 'update_builder', form_id: form_id },
|
|
success: function(data){
|
|
|
|
jQuery('.um-admin-drag-ajax').html(data);
|
|
|
|
jQuery('.tipsy').hide();
|
|
|
|
/* trigger columns at start */
|
|
allow_update_via_col_click = false;
|
|
jQuery('.um-admin-drag-ctrls.columns a.active').each(function(){
|
|
jQuery(this).trigger('click');
|
|
}).promise().done( function(){ allow_update_via_col_click = true; } );
|
|
|
|
UM_Rows_Refresh();
|
|
|
|
},
|
|
error: function(data){
|
|
|
|
}
|
|
});
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
}); |