Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function () {
- jQuery("#$zona1y").change(function() {// if a user changed the y-Axis
- check_preview_refresh();
- }
- );
- jQuery("#$zona1x").change(function() {// if a user changed the x-Axis
- check_preview_refresh();
- }
- );
- });
- function check_preview_refresh(){
- if (jQuery("#zona1y").val() != '' && jQuery("#zona1x").val() != '' ){
- jQuery.ajax({
- type: "post",url: "admin-ajax.php",data: { action: 'site_preview', _ajax_nonce: '<?php echo $nonce; ?>' },
- success: function(html){
- jQuery("#themepreview").html(html);
- jQuery("#themepreview").show();
- }
- });
- }
- }
- // Zona2
- jQuery(document).ready(function () {
- jQuery("#$zona2y").change(function() {// if a user changed the y-Axis
- check_preview_refresh();
- }
- );
- jQuery("#$zona2x").change(function() {// if a user changed the x-Axis
- check_preview_refresh();
- }
- );
- });
- function check_preview_refresh(){
- if (jQuery("#zona2y").val() != '' && jQuery("#zona2x").val() != '' ){
- jQuery.ajax({
- type: "post",url: "admin-ajax.php",data: { action: 'site_preview', _ajax_nonce: '<?php echo $nonce; ?>' },
- success: function(html){
- jQuery("#themepreview").html(html);
- jQuery("#themepreview").show();
- }
- });
- }
- }
- // Zona 3
- jQuery(document).ready(function () {
- jQuery("#$zona3y").change(function() {// if a user changed the y-Axis
- check_preview_refresh();
- }
- );
- jQuery("#$zona3x").change(function() {// if a user changed the x-Axis
- check_preview_refresh();
- }
- );
- });
- function check_preview_refresh(){
- if (jQuery("#zona3y").val() != '' && jQuery("#zona3x").val() != '' ){
- jQuery.ajax({
- type: "post",url: "admin-ajax.php",data: { action: 'site_preview', _ajax_nonce: '<?php echo $nonce; ?>' },
- success: function(html){
- jQuery("#themepreview").html(html);
- jQuery("#themepreview").show();
- }
- });
- }
- }
- //Zona 4
- jQuery(document).ready(function () {
- jQuery("#$zona4y").change(function() {// if a user changed the y-Axis
- check_preview_refresh();
- }
- );
- jQuery("#$zona4x").change(function() {// if a user changed the x-Axis
- check_preview_refresh();
- }
- );
- });
- function check_preview_refresh(){
- if (jQuery("#zona4y").val() != '' && jQuery("#zona4x").val() != '' ){
- jQuery.ajax({
- type: "post",url: "admin-ajax.php",data: { action: 'site_preview', _ajax_nonce: '<?php echo $nonce; ?>' },
- success: function(html){
- jQuery("#themepreview").html(html);
- jQuery("#themepreview").show();
- }
- });
- }
- }
- //Zona 5
- jQuery(document).ready(function () {
- jQuery("#$zona5y").change(function() {// if a user changed the y-Axis
- check_preview_refresh();
- }
- );
- jQuery("#$zona5x").change(function() {// if a user changed the x-Axis
- check_preview_refresh();
- }
- );
- });
- function check_preview_refresh(){
- if (jQuery("#zona5y").val() != '' && jQuery("#zona5x").val() != '' ){
- jQuery.ajax({
- type: "post",url: "admin-ajax.php",data: { action: 'site_preview', _ajax_nonce: '<?php echo $nonce; ?>' },
- success: function(html){
- jQuery("#themepreview").html(html);
- jQuery("#themepreview").show();
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement