This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

View File

@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
var license_key = $('#license-key').val();
jQuery.ajax({
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=12.4.5',
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=13.3.2',
jsonp: 'callback',
dataType: 'jsonp',
type: 'GET',

View File

@@ -16,14 +16,18 @@ jQuery(function($) {
}
if (get_value == 'woosea_manage_feed') {
jQuery(function($) {
//$(document).on('ready',function(){
// Check if feed is processing
jQuery.ajax({
var nonce = $('#_wpnonce').val();
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_check_processing' }
dataType: "json",
data: {
'action': 'woosea_check_processing',
'security': nonce,
}
})
.done(function( data ) {
if(data.processing == "true"){
@@ -33,16 +37,22 @@ jQuery(function($) {
}
})
.fail(function( data ) {
console.log('Failed AJAX Call :( /// Return Data: ' + data);
console.log('Failed AJAX Call :( /// Return Data: ' + data);
});
});
}
$(".dismiss-review-notification").on('click', function(){
jQuery.ajax({
var nonce = $('#_wpnonce').val();
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_review_notification' }
data: {
'action': 'woosea_review_notification',
'security': nonce,
}
})
$(".review-notification").remove();
@@ -50,6 +60,8 @@ jQuery(function($) {
});
$(".get_elite").on('click', function(e){
var nonce = $('#_wpnonce').val();
if(e.target.tagName === 'A') return; // clicking on links should not close the div notice
$(".get_elite").remove();
@@ -57,11 +69,16 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_getelite_notification' }
data: {
'action': 'woosea_getelite_notification',
'security': nonce,
}
})
});
$(".get_elite_activate").on('click', function(e){
var nonce = $('#_wpnonce').val();
if(e.target.tagName === 'A') return; // clicking on links should not close the div notice
$(".get_elite_activate").remove();
@@ -69,14 +86,17 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_getelite_active_notification' }
data: {
'action': 'woosea_getelite_active_notification',
'security': nonce,
}
})
});
$("td[id=manage_inline]").find("div").parents("tr").hide();
$('.checkbox-field').on('change', function(index, obj){
var csrfToken = $('#csrfToken').val();
var nonce = $('#_wpnonce').val();
if(get_value == 'woosea_manage_settings' && tab_value == 'woosea_manage_attributes'){
var attribute_value = $(this).val();
var attribute_name = $(this).attr('name');
@@ -87,7 +107,7 @@ jQuery(function($) {
url: ajaxurl,
data: {
'action': 'woosea_add_attributes',
'security': csrfToken,
'security': nonce,
'attribute_name': attribute_name,
'attribute_value': attribute_value,
'active': attribute_status
@@ -102,6 +122,7 @@ jQuery(function($) {
url: ajaxurl,
data: {
'action': 'woosea_project_status',
'security': nonce,
'project_hash': project_hash,
'active': project_status
}
@@ -349,12 +370,18 @@ jQuery(function($) {
// Check if user would like to add a Facebook Pixel to their website
$('#woosea_content_ids').on('change', function(){ // on change of state
var nonce = $('#_wpnonce').val();
var content_ids = $('#woosea_content_ids').val();
if(content_ids){
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_facebook_content_ids', 'content_ids': content_ids }
data: {
'action': 'woosea_facebook_content_ids',
'security': nonce,
'content_ids': content_ids
}
})
}
})
@@ -559,7 +586,7 @@ jQuery(function($) {
var adwords_conversion_id = $('#adwords_conv_id').val();
var re = /^[0-9,-]*$/;
var woosea_valid_conversion_id=re.test(adwords_conversion_id);
// Check for allowed characters
if (!woosea_valid_conversion_id){
$('.notice').replaceWith("<div class='notice notice-error woosea-notice-conversion is-dismissible'><p>Sorry, only numbers are allowed for your Dynamic Remarketing Conversion tracking ID.</p></div>");
@@ -645,6 +672,7 @@ jQuery(function($) {
var idsplit = id.split('_');
var project_hash = idsplit[1];
var action = idsplit[0];
var nonce = $('#_wpnonce').val();
if (action == "gear"){
$("tr").not(':first').click(
@@ -656,13 +684,16 @@ jQuery(function($) {
}
if (action == "copy"){
var popup_dialog = confirm("Are you sure you want to copy this feed?");
if (popup_dialog == true){
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_project_copy', 'project_hash': project_hash }
data: {
'action': 'woosea_project_copy',
'security': nonce,
'project_hash': project_hash
}
})
.done(function( data ) {
@@ -680,7 +711,11 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_project_delete', 'project_hash': project_hash }
data: {
'action': 'woosea_project_delete',
'security': nonce,
'project_hash': project_hash
}
})
$("table tbody").find('input[name="manage_record"]').each(function(){
@@ -699,7 +734,11 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_project_cancel', 'project_hash': project_hash }
data: {
'action': 'woosea_project_cancel',
'security': nonce,
'project_hash': project_hash
}
})
// Replace status of project to stop processing
@@ -722,7 +761,11 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_project_refresh', 'project_hash': project_hash }
data: {
'action': 'woosea_project_refresh',
'security': nonce,
'project_hash': project_hash
}
})
// Replace status of project to processing
@@ -752,13 +795,18 @@ jQuery(function($) {
function woosea_check_perc(){
// Check if we need to UP the processing percentage
var nonce = $('#_wpnonce').val();
$("table tbody").find('input[name="manage_record"]').each(function(){
var hash = this.value;
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_project_processing_status', 'project_hash': hash },
data: {
'action': 'woosea_project_processing_status',
'security': nonce,
'project_hash': hash
},
success: function(data) {
data = JSON.parse( data );
@@ -784,7 +832,10 @@ jQuery(function($) {
jQuery.ajax({
method: "POST",
url: ajaxurl,
data: { 'action': 'woosea_check_processing' }
data: {
'action': 'woosea_check_processing',
'security': nonce,
}
})
.done(function( data ) {
data = JSON.parse( data );
@@ -798,4 +849,7 @@ jQuery(function($) {
});
});
}
// Add copy to clipboard functionality for the debug information content box.
new ClipboardJS('.copy-product-feed-pro-debug-info');
});