| Server IP : 118.139.160.155 / Your IP : 216.73.217.176 Web Server : Apache System : Linux sg2plmcpnl504228.prod.sin2.secureserver.net 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64 User : twll3xqyaqrh ( 9725459) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/twll3xqyaqrh/public_html/Site WP/wp-content/plugins/post-grid/assets/admin/js/ |
Upload File : |
jQuery(document).ready(function($){
$('.post-grid-meta-box .select2, #post_grid_post_settings .select2').select2({
width: '360px',
allowClear: true
});
$(document).on('change', '#post-grid .select-layout-content', function(){
var layout = $(this).val();
jQuery.ajax({
type: 'POST',
url: post_grid_ajax.post_grid_ajaxurl,
data: {"action": "post_grid_layout_content_ajax","layout":layout},
success: function(data){
//jQuery(".layout-content").html(data);
jQuery("#post-grid .layer-content").html(data);
}
});
})
$(document).on('change', '#post-grid #post_types', function(){
post_types = $(this).val();
grid_id = $(this).attr('grid_id');
html = '<i class="fas fa-spin fa-spinner"></i>';
$('#taxonomies-terms').html(html);
jQuery.ajax(
{
type: 'POST',
context: this,
url: post_grid_ajax.post_grid_ajaxurl,
data: {"action": "post_grid_update_taxonomies_terms_by_posttypes","post_types": post_types,"grid_id": grid_id },
success: function(response) {
var data = JSON.parse( response );
html = data['html'];
$('#taxonomies-terms').html(html);
$('#taxonomies-terms .select2').select2({
width: '320px',
allowClear: true
});
}
});
})
});