jQuery(document).ready(function($){if("undefined"!=typeof inlineEditPost){var e=inlineEditPost.edit;inlineEditPost.edit=function(a){e.apply(this,arguments);var n=0;if("object"==typeof a&&(n=parseInt(this.getId(a))),n>0){var i=$("#edit-"+n),l=$("#post-"+n),t=$('input[name="_envira_gallery_'+n+'[columns]"]',$(l)).val(),r=$('input[name="_envira_gallery_'+n+'[gallery_theme]"]',$(l)).val(),_=$('input[name="_envira_gallery_'+n+'[gutter]"]',$(l)).val(),v=$('input[name="_envira_gallery_'+n+'[margin]"]',$(l)).val(),u=$('input[name="_envira_gallery_'+n+'[crop_width]"]',$(l)).val(),m=$('input[name="_envira_gallery_'+n+'[crop_height]"]',$(l)).val();$('select[name="_envira_gallery[columns]"]',$(i)).val(t),$('select[name="_envira_gallery[gallery_theme]"]',$(i)).val(r),$('input[name="_envira_gallery[gutter]"]',$(i)).val(_),$('input[name="_envira_gallery[margin]"]',$(i)).val(v),$('input[name="_envira_gallery[crop_width]"]',$(i)).val(u),$('input[name="_envira_gallery[crop_height]"]',$(i)).val(m)}},$("form#posts-filter").on("submit",function(e){$("input.envira-quick-edit").remove()})}});