Suche

Neues Ticket / New Ticket

Teilen Sie uns Ihr Anliegen mit.
LET US KNOW WHAT YOU NEED.

/** * Get create ticket form */ function wpsc_get_ticket_form() { if (wpsc_is_description_text()) { if ( confirm(supportcandy.translations.warning_message)) { current_ticket = jQuery('#wpsc-current-ticket').val(); wpsc_clear_saved_draft_reply( current_ticket ); }else{ return; } } jQuery('.wpsc-body').html(supportcandy.loader_html); if (supportcandy.is_reload != 1) { wpsc_scroll_top(); } else { supportcandy.is_reload = 0 } var url = new URL(window.location.href); var search_params = url.searchParams; var data = { action: 'wpsc_get_ticket_form', _ajax_nonce: supportcandy.nonce }; search_params.forEach(function(value, key) { data[key] = value; }); jQuery.post(supportcandy.ajax_url, data, function (response) { jQuery('.wpsc-body').html(response); wpsc_reset_responsive_style(); }); } /** * Get individual ticket */ function wpsc_get_individual_ticket(id) { jQuery('.wpsc-tickets-nav, .wpsc-humbargar-menu-item').removeClass('active'); jQuery('.wpsc-tickets-nav.ticket-list, .wpsc-humbargar-menu-item.ticket-list').addClass('active'); jQuery('.wpsc-humbargar-title').html(supportcandy.humbargar_titles.ticket_list); // set url var url = new URL(window.location.href); var search_params = url.searchParams; search_params.set('wpsc-section', 'ticket-list'); search_params.set('ticket-id', id); url.search = search_params.toString(); window.history.replaceState({}, null, url.toString()); jQuery('.wpsc-body').html(supportcandy.loader_html); // set flag to differenciate between ticket list and individual ticket supportcandy.ticketListIsIndividual = true; var data = { action: 'wpsc_get_individual_ticket', ticket_id: id, }; search_params.forEach(function(value, key) { data[key] = value; }); jQuery.post(supportcandy.ajax_url, data, function (response) { jQuery('.wpsc-body').html(response); wpsc_reset_responsive_style(); }); }