balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

combine-admin.js (507B)


      1 if (typeof wp.customize != "undefined") {
      2 	wp.customize.control("combine_cache_assets_button", function(control) {
      3 		control.container.find(".combine_vc_ele_css").on("click", function() {
      4 			console.log("Button was clicked.");
      5 			jQuery.ajax({
      6 				type: "post",
      7 				url: combine_vc_ele_object.ajax_url,
      8 				data: { action: "combine_vc_ele_css_clear_cache" },
      9 				success: function(msg) {
     10 					obj = JSON.parse(msg);
     11 					if (obj.status == "success") {
     12 						alert("Clear");
     13 					}
     14 				}
     15 			});
     16 		});
     17 	});
     18 }