| @@ -1428,67 +1428,8 @@ | ||
| 1428 | 1428 | }); |
| 1429 | 1429 | } |
| 1430 | 1430 | |
| 1431 | 1431 | /** |
| 1432 | - * Get appearence agent collision settigns | |
| 1433 | - */ | |
| 1434 | -function wpsc_get_ap_agent_collision() { | |
| 1435 | - supportcandy.current_tab = "agent-collision"; | |
| 1436 | - jQuery(".wpsc-setting-tab-container button").removeClass("active"); | |
| 1437 | - jQuery( | |
| 1438 | - ".wpsc-setting-tab-container button." + supportcandy.current_tab | |
| 1439 | - ).addClass("active"); | |
| 1440 | - | |
| 1441 | - window.history.replaceState( | |
| 1442 | - {}, | |
| 1443 | - null, | |
| 1444 | - "admin.php?page=wpsc-settings§ion=" + | |
| 1445 | - supportcandy.current_section + | |
| 1446 | - "&tab=" + | |
| 1447 | - supportcandy.current_tab | |
| 1448 | - ); | |
| 1449 | - jQuery(".wpsc-setting-section-body").html(supportcandy.loader_html); | |
| 1450 | - | |
| 1451 | - wpsc_scroll_top(); | |
| 1452 | - var data = { action: "wpsc_get_ap_agent_collision" }; | |
| 1453 | - jQuery.post(supportcandy.ajax_url, data, function (response) { | |
| 1454 | - jQuery(".wpsc-setting-section-body").html(response); | |
| 1455 | - wpsc_reset_responsive_style(); | |
| 1456 | - }); | |
| 1457 | -} | |
| 1458 | - | |
| 1459 | -/** | |
| 1460 | - * Set appearence agent collision settings | |
| 1461 | - */ | |
| 1462 | -function wpsc_set_ap_agent_collision(el) { | |
| 1463 | - var form = jQuery(".wpsc-frm-ap-agent-collision")[0]; | |
| 1464 | - var dataform = new FormData(form); | |
| 1465 | - jQuery(el).text(supportcandy.translations.please_wait); | |
| 1466 | - jQuery | |
| 1467 | - .ajax({ | |
| 1468 | - url: supportcandy.ajax_url, | |
| 1469 | - type: "POST", | |
| 1470 | - data: dataform, | |
| 1471 | - processData: false, | |
| 1472 | - contentType: false, | |
| 1473 | - }) | |
| 1474 | - .done(function (res) { | |
| 1475 | - wpsc_get_ap_agent_collision(); | |
| 1476 | - }); | |
| 1477 | -} | |
| 1478 | - | |
| 1479 | -/** | |
| 1480 | - * Reset appearence agent collision settings | |
| 1481 | - */ | |
| 1482 | -function wpsc_reset_ap_agent_collision(el, nonce) { | |
| 1483 | - jQuery(el).text(supportcandy.translations.please_wait); | |
| 1484 | - var data = { action: "wpsc_reset_ap_agent_collision", _ajax_nonce: nonce }; | |
| 1485 | - jQuery.post(supportcandy.ajax_url, data, function (res) { | |
| 1486 | - wpsc_get_ap_agent_collision(); | |
| 1487 | - }); | |
| 1488 | -} | |
| 1489 | - | |
| 1490 | -/** | |
| 1491 | 1432 | * Set add new category |
| 1492 | 1433 | */ |
| 1493 | 1434 | function wpsc_set_add_category(el) { |
| 1494 | 1435 | var form = jQuery(".wpsc-frm-add-category")[0]; |