67 lines
1.7 KiB
JavaScript
67 lines
1.7 KiB
JavaScript
jQuery(document).ready( function() {
|
|
|
|
|
|
|
|
var icons = {
|
|
header: "fa fa-angle-double-right",
|
|
activeHeader: "fa fa-angle-double-down"
|
|
};
|
|
|
|
|
|
jQuery( "#accordion" ).accordion({
|
|
collapsible: true,
|
|
icons: icons,
|
|
active: false
|
|
});
|
|
|
|
|
|
|
|
|
|
// Ajax Call for mkb Dropdown (Theme 1)
|
|
jQuery("#tr_go").click(function(e) {
|
|
e.preventDefault();
|
|
var trcat = jQuery("#trcat").val();
|
|
var bimg = jQuery("#bimg").val();
|
|
var bc = jQuery("#bc").val();
|
|
jQuery( "#showmsg" ).prepend("<div align='center' class='alertes alert-successes'>Loading Data...</div>");
|
|
jQuery( ".mkb-rr" ).remove();
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url:mkbAjax.ajaxurl,
|
|
data: {"action": "mkb_dropdown_ajax", "trcat":trcat,"bc":bc,"bimg":bimg},
|
|
success:function(data) {
|
|
jQuery( ".alert-successes" ).remove();
|
|
jQuery( "#showmsg" ).append("<div class='alertes alert-successes mkb-rr'>"+data+"</div>");
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
|
|
// Ajax Call for mkb Dropdown (Theme 2)
|
|
jQuery(".leftm").click(function(e) {
|
|
e.preventDefault();
|
|
var trcat = jQuery(this).attr("data-id");
|
|
var bimglb = jQuery("#bimglb").val();
|
|
var bclb = jQuery("#bclb").val();
|
|
jQuery( "#showmsglb" ).prepend("<div align='center' class='alertes alert-successes'>Loading Data...</div>");
|
|
jQuery( ".mkb-llb" ).remove();
|
|
jQuery.ajax({
|
|
type: 'POST',
|
|
url:mkbAjax.ajaxurl,
|
|
data: {"action": "mkb_lfb_ajax", "trcat":trcat,"bclb":bclb,"bimglb":bimglb},
|
|
success:function(data) {
|
|
jQuery( ".alert-successes" ).remove();
|
|
jQuery( "#showmsglb" ).append("<div class='alertes alert-successes mkb-llb'>"+data+"</div>");
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |