Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../js
File: tour.js
(function ($) {
[0] Fix | Delete
[1] Fix | Delete
$(function() {
[2] Fix | Delete
/*
[3] Fix | Delete
Plugins page
[4] Fix | Delete
splash screen on activation
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
$('.updraftplus-welcome .close').on('click', function(e) {
[8] Fix | Delete
e.preventDefault();
[9] Fix | Delete
$(this).closest('.updraftplus-welcome').remove();
[10] Fix | Delete
});
[11] Fix | Delete
[12] Fix | Delete
/*
[13] Fix | Delete
Updraftplus page tour
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
// if Shepherd is undefined, exit.
[17] Fix | Delete
if (!window.Shepherd) return;
[18] Fix | Delete
[19] Fix | Delete
var button_classes = 'button button-primary';
[20] Fix | Delete
var plugins_page_tour = window.updraft_plugins_page_tour = new Shepherd.Tour();
[21] Fix | Delete
var main_tour = window.updraft_main_tour = new Shepherd.Tour();
[22] Fix | Delete
[23] Fix | Delete
// Set up the defaults for each step
[24] Fix | Delete
main_tour.options.defaults = plugins_page_tour.options.defaults = {
[25] Fix | Delete
classes: 'shepherd-theme-arrows-plain-buttons shepherd-main-tour',
[26] Fix | Delete
showCancelLink: true,
[27] Fix | Delete
scrollTo: false,
[28] Fix | Delete
tetherOptions: {
[29] Fix | Delete
constraints: [
[30] Fix | Delete
{
[31] Fix | Delete
to: 'scrollParent',
[32] Fix | Delete
attachment: 'together',
[33] Fix | Delete
pin: false
[34] Fix | Delete
}
[35] Fix | Delete
]
[36] Fix | Delete
}
[37] Fix | Delete
};
[38] Fix | Delete
[39] Fix | Delete
/*
[40] Fix | Delete
Plugins page
[41] Fix | Delete
*/
[42] Fix | Delete
[43] Fix | Delete
plugins_page_tour.addStep('intro', {
[44] Fix | Delete
title: updraftplus_tour_i18n.plugins_page.title,
[45] Fix | Delete
text: updraftplus_tour_i18n.plugins_page.text,
[46] Fix | Delete
attachTo: '.js-updraftplus-settings top',
[47] Fix | Delete
buttons: [
[48] Fix | Delete
{
[49] Fix | Delete
classes: button_classes,
[50] Fix | Delete
text: updraftplus_tour_i18n.plugins_page.button.text,
[51] Fix | Delete
action: function() {
[52] Fix | Delete
window.location = updraftplus_tour_i18n.plugins_page.button.url;
[53] Fix | Delete
}
[54] Fix | Delete
}
[55] Fix | Delete
],
[56] Fix | Delete
tetherOptions: {
[57] Fix | Delete
constraints: [
[58] Fix | Delete
{
[59] Fix | Delete
to: 'scrollParent',
[60] Fix | Delete
attachment: 'together',
[61] Fix | Delete
pin: false
[62] Fix | Delete
}
[63] Fix | Delete
],
[64] Fix | Delete
offset: '20px 0'
[65] Fix | Delete
},
[66] Fix | Delete
when: {
[67] Fix | Delete
show: function() {
[68] Fix | Delete
$('body').addClass('highlight-udp');
[69] Fix | Delete
var popup = $(this.el);
[70] Fix | Delete
// var target = $(this.tether.target);
[71] Fix | Delete
$('body, html').animate({
[72] Fix | Delete
scrollTop: popup.offset().top - 50
[73] Fix | Delete
}, 500, function() {
[74] Fix | Delete
window.scrollTo(0, popup.offset().top - 50);
[75] Fix | Delete
});
[76] Fix | Delete
},
[77] Fix | Delete
hide: function() {
[78] Fix | Delete
$('body').removeClass('highlight-udp');
[79] Fix | Delete
}
[80] Fix | Delete
}
[81] Fix | Delete
});
[82] Fix | Delete
[83] Fix | Delete
/*
[84] Fix | Delete
Main Tour steps
[85] Fix | Delete
*/
[86] Fix | Delete
[87] Fix | Delete
// 1. Your first backup
[88] Fix | Delete
main_tour.addStep('backup_now', {
[89] Fix | Delete
title: updraftplus_tour_i18n.backup_now.title,
[90] Fix | Delete
text: updraftplus_tour_i18n.backup_now.text,
[91] Fix | Delete
attachTo: '#updraft-backupnow-button bottom',
[92] Fix | Delete
buttons: [
[93] Fix | Delete
{
[94] Fix | Delete
classes: 'udp-tour-end',
[95] Fix | Delete
text: updraftplus_tour_i18n.end_tour,
[96] Fix | Delete
action: main_tour.cancel
[97] Fix | Delete
},
[98] Fix | Delete
{
[99] Fix | Delete
classes: button_classes,
[100] Fix | Delete
text: updraftplus_tour_i18n.next,
[101] Fix | Delete
action: function() {
[102] Fix | Delete
$('#updraft-navtab-settings').trigger('click');
[103] Fix | Delete
}
[104] Fix | Delete
}
[105] Fix | Delete
]
[106] Fix | Delete
});
[107] Fix | Delete
[108] Fix | Delete
// Manual backup options
[109] Fix | Delete
main_tour.addStep('backup_options', {
[110] Fix | Delete
title: updraftplus_tour_i18n.backup_options.title,
[111] Fix | Delete
text: updraftplus_tour_i18n.backup_options.text,
[112] Fix | Delete
classes: 'shepherd-theme-arrows-plain-buttons shepherd-main-tour super-index',
[113] Fix | Delete
attachTo: '#backupnow_includedb left',
[114] Fix | Delete
tetherOptions: {
[115] Fix | Delete
offset: '-15px 25px'
[116] Fix | Delete
},
[117] Fix | Delete
buttons: [
[118] Fix | Delete
{
[119] Fix | Delete
classes: 'udp-tour-back',
[120] Fix | Delete
text: updraftplus_tour_i18n.back,
[121] Fix | Delete
action: function() {
[122] Fix | Delete
$('#updraft-backupnow-modal').dialog('close');
[123] Fix | Delete
}
[124] Fix | Delete
},
[125] Fix | Delete
{
[126] Fix | Delete
classes: button_classes,
[127] Fix | Delete
text: updraftplus_tour_i18n.next,
[128] Fix | Delete
action: main_tour.next
[129] Fix | Delete
}
[130] Fix | Delete
]
[131] Fix | Delete
});
[132] Fix | Delete
[133] Fix | Delete
// Backup Now button
[134] Fix | Delete
main_tour.addStep('backup_now_btn', {
[135] Fix | Delete
title: updraftplus_tour_i18n.backup_now_btn.title,
[136] Fix | Delete
text: updraftplus_tour_i18n.backup_now_btn.text,
[137] Fix | Delete
classes: 'shepherd-theme-arrows-plain-buttons shepherd-main-tour super-index',
[138] Fix | Delete
attachTo: '.js-tour-backup-now-button top',
[139] Fix | Delete
buttons: [
[140] Fix | Delete
{
[141] Fix | Delete
classes: 'udp-tour-back',
[142] Fix | Delete
text: updraftplus_tour_i18n.back,
[143] Fix | Delete
action: function() {
[144] Fix | Delete
main_tour.back();
[145] Fix | Delete
}
[146] Fix | Delete
},
[147] Fix | Delete
{
[148] Fix | Delete
classes: button_classes,
[149] Fix | Delete
text: updraftplus_tour_i18n.backup_now_btn.btn_text,
[150] Fix | Delete
action: function() {
[151] Fix | Delete
$('#updraft-backupnow-modal').dialog('close');
[152] Fix | Delete
$('#updraft-navtab-settings').trigger('click');
[153] Fix | Delete
}
[154] Fix | Delete
}
[155] Fix | Delete
]
[156] Fix | Delete
});
[157] Fix | Delete
[158] Fix | Delete
// Congratulations - Shows when a user clicks "backup now" in the modal
[159] Fix | Delete
main_tour.addStep('backup_now_btn_success', {
[160] Fix | Delete
title: updraftplus_tour_i18n.backup_now_btn_success.title,
[161] Fix | Delete
text: updraftplus_tour_i18n.backup_now_btn_success.text,
[162] Fix | Delete
attachTo: '#updraft_activejobs_table top',
[163] Fix | Delete
buttons: [
[164] Fix | Delete
{
[165] Fix | Delete
classes: 'udp-tour-back',
[166] Fix | Delete
text: updraftplus_tour_i18n.back,
[167] Fix | Delete
action: function() {
[168] Fix | Delete
$('#updraft-backupnow-button').trigger('click');
[169] Fix | Delete
main_tour.show('backup_now_btn');
[170] Fix | Delete
}
[171] Fix | Delete
},
[172] Fix | Delete
{
[173] Fix | Delete
classes: button_classes,
[174] Fix | Delete
text: updraftplus_tour_i18n.backup_now_btn_success.btn_text,
[175] Fix | Delete
action: function() {
[176] Fix | Delete
$('#updraft-navtab-settings').trigger('click');
[177] Fix | Delete
}
[178] Fix | Delete
}
[179] Fix | Delete
],
[180] Fix | Delete
when: {
[181] Fix | Delete
show: function() {
[182] Fix | Delete
setTimeout(function() {
[183] Fix | Delete
$(window).trigger('scroll');
[184] Fix | Delete
})
[185] Fix | Delete
[186] Fix | Delete
}
[187] Fix | Delete
}
[188] Fix | Delete
})
[189] Fix | Delete
[190] Fix | Delete
// Settings - timing
[191] Fix | Delete
main_tour.addStep('settings_timing', {
[192] Fix | Delete
title: updraftplus_tour_i18n.settings_timing.title,
[193] Fix | Delete
text: updraftplus_tour_i18n.settings_timing.text,
[194] Fix | Delete
attachTo: '.retain-files right',
[195] Fix | Delete
buttons: [
[196] Fix | Delete
{
[197] Fix | Delete
classes: 'udp-tour-back',
[198] Fix | Delete
text: updraftplus_tour_i18n.back,
[199] Fix | Delete
action: function() {
[200] Fix | Delete
$('#updraft-navtab-backups').trigger('click');
[201] Fix | Delete
}
[202] Fix | Delete
},
[203] Fix | Delete
{
[204] Fix | Delete
classes: button_classes,
[205] Fix | Delete
text: updraftplus_tour_i18n.next,
[206] Fix | Delete
action: main_tour.next
[207] Fix | Delete
}
[208] Fix | Delete
],
[209] Fix | Delete
tetherOptions: $.extend({}, main_tour.options.defaults.tetherOptions, {
[210] Fix | Delete
offset: '-33px -15px'
[211] Fix | Delete
}),
[212] Fix | Delete
when: {
[213] Fix | Delete
show: function() {
[214] Fix | Delete
scroll_to_popup();
[215] Fix | Delete
}
[216] Fix | Delete
}
[217] Fix | Delete
});
[218] Fix | Delete
[219] Fix | Delete
// Settings - Remote storage + vault
[220] Fix | Delete
main_tour.addStep('settings_remote_storage', {
[221] Fix | Delete
title: updraftplus_tour_i18n.settings_remote_storage.title,
[222] Fix | Delete
text: updraftplus_tour_i18n.settings_remote_storage.text,
[223] Fix | Delete
attachTo: {
[224] Fix | Delete
element: 'label[for=updraft_servicecheckbox_updraftvault]',
[225] Fix | Delete
on: 'top'
[226] Fix | Delete
},
[227] Fix | Delete
buttons: [
[228] Fix | Delete
{
[229] Fix | Delete
classes: 'udp-tour-back',
[230] Fix | Delete
text: updraftplus_tour_i18n.back,
[231] Fix | Delete
action: function() {
[232] Fix | Delete
main_tour.back();
[233] Fix | Delete
}
[234] Fix | Delete
},
[235] Fix | Delete
{
[236] Fix | Delete
classes: button_classes,
[237] Fix | Delete
text: updraftplus_tour_i18n.next,
[238] Fix | Delete
action: function() {
[239] Fix | Delete
if ($('#updraft_servicecheckbox_updraftvault').is(':checked')) {
[240] Fix | Delete
main_tour.show('vault_selected')
[241] Fix | Delete
} else {
[242] Fix | Delete
main_tour.next();
[243] Fix | Delete
}
[244] Fix | Delete
}
[245] Fix | Delete
}
[246] Fix | Delete
],
[247] Fix | Delete
when: {
[248] Fix | Delete
show: function(p) {
[249] Fix | Delete
$('label[for=updraft_servicecheckbox_updraftvault]').addClass('emphasize');
[250] Fix | Delete
scroll_to_popup();
[251] Fix | Delete
},
[252] Fix | Delete
hide: function(p) {
[253] Fix | Delete
$('label[for=updraft_servicecheckbox_updraftvault]').removeClass('emphasize');
[254] Fix | Delete
}
[255] Fix | Delete
}
[256] Fix | Delete
});
[257] Fix | Delete
[258] Fix | Delete
// Settings - more + updraftcentral
[259] Fix | Delete
main_tour.addStep('settings_more', {
[260] Fix | Delete
title: updraftplus_tour_i18n.settings_more.title,
[261] Fix | Delete
text: updraftplus_tour_i18n.settings_more.text,
[262] Fix | Delete
attachTo: '.js-tour-settings-more top',
[263] Fix | Delete
scrollTo: false,
[264] Fix | Delete
tetherOptions: {},
[265] Fix | Delete
buttons: [
[266] Fix | Delete
{
[267] Fix | Delete
classes: 'udp-tour-back',
[268] Fix | Delete
text: updraftplus_tour_i18n.back,
[269] Fix | Delete
action: function() {
[270] Fix | Delete
main_tour.back();
[271] Fix | Delete
}
[272] Fix | Delete
},
[273] Fix | Delete
{
[274] Fix | Delete
classes: button_classes,
[275] Fix | Delete
text: updraftplus_tour_i18n.next,
[276] Fix | Delete
action: main_tour.next
[277] Fix | Delete
}
[278] Fix | Delete
],
[279] Fix | Delete
when: {
[280] Fix | Delete
show: function() {
[281] Fix | Delete
scroll_to_popup();
[282] Fix | Delete
}
[283] Fix | Delete
}
[284] Fix | Delete
});
[285] Fix | Delete
[286] Fix | Delete
// Save settings
[287] Fix | Delete
main_tour.addStep('settings_save', {
[288] Fix | Delete
title: updraftplus_tour_i18n.settings_save.title,
[289] Fix | Delete
text: updraftplus_tour_i18n.settings_save.text,
[290] Fix | Delete
attachTo: '#updraftplus-settings-save top',
[291] Fix | Delete
scrollTo: false,
[292] Fix | Delete
buttons: [
[293] Fix | Delete
{
[294] Fix | Delete
classes: 'udp-tour-back',
[295] Fix | Delete
text: updraftplus_tour_i18n.back,
[296] Fix | Delete
action: function() {
[297] Fix | Delete
main_tour.back();
[298] Fix | Delete
}
[299] Fix | Delete
},
[300] Fix | Delete
{
[301] Fix | Delete
classes: button_classes,
[302] Fix | Delete
text: updraftplus_tour_i18n.next,
[303] Fix | Delete
action: function() {
[304] Fix | Delete
if ($('#updraftcentral_cloud_connect_container').length) {
[305] Fix | Delete
main_tour.show('updraft_central');
[306] Fix | Delete
} else {
[307] Fix | Delete
$('#updraft-navtab-addons').trigger('click');
[308] Fix | Delete
}
[309] Fix | Delete
}
[310] Fix | Delete
}
[311] Fix | Delete
],
[312] Fix | Delete
when: {
[313] Fix | Delete
show: function() {
[314] Fix | Delete
scroll_to_popup();
[315] Fix | Delete
}
[316] Fix | Delete
}
[317] Fix | Delete
});
[318] Fix | Delete
[319] Fix | Delete
// UDCentral
[320] Fix | Delete
main_tour.addStep('updraft_central', {
[321] Fix | Delete
title: updraftplus_tour_i18n.updraft_central.title,
[322] Fix | Delete
text: updraftplus_tour_i18n.updraft_central.text,
[323] Fix | Delete
attachTo: '#updraftcentral_cloud_connect_container top',
[324] Fix | Delete
scrollTo: false,
[325] Fix | Delete
buttons: [
[326] Fix | Delete
{
[327] Fix | Delete
classes: 'udp-tour-back',
[328] Fix | Delete
text: updraftplus_tour_i18n.back,
[329] Fix | Delete
action: function() {
[330] Fix | Delete
main_tour.back();
[331] Fix | Delete
}
[332] Fix | Delete
},
[333] Fix | Delete
{
[334] Fix | Delete
classes: button_classes,
[335] Fix | Delete
text: updraftplus_tour_i18n.next,
[336] Fix | Delete
action: function() {
[337] Fix | Delete
$('#updraft-navtab-addons').trigger('click');
[338] Fix | Delete
}
[339] Fix | Delete
}
[340] Fix | Delete
],
[341] Fix | Delete
when: {
[342] Fix | Delete
show: function() {
[343] Fix | Delete
scroll_to_popup();
[344] Fix | Delete
}
[345] Fix | Delete
}
[346] Fix | Delete
});
[347] Fix | Delete
[348] Fix | Delete
// Premium + addons
[349] Fix | Delete
main_tour.addStep('premium', {
[350] Fix | Delete
title: updraftplus_tour_i18n.premium.title,
[351] Fix | Delete
text: updraftplus_tour_i18n.premium.text,
[352] Fix | Delete
attachTo: updraftplus_tour_i18n.premium.attach_to,
[353] Fix | Delete
scrollTo: false,
[354] Fix | Delete
buttons: [
[355] Fix | Delete
{
[356] Fix | Delete
classes: 'udp-tour-back',
[357] Fix | Delete
text: updraftplus_tour_i18n.back,
[358] Fix | Delete
action: function() {
[359] Fix | Delete
main_tour.going_somewhere = true;
[360] Fix | Delete
$('#updraft-navtab-settings').trigger('click');
[361] Fix | Delete
if ($('#updraftcentral_cloud_connect_container').length) {
[362] Fix | Delete
main_tour.show('updraft_central');
[363] Fix | Delete
} else {
[364] Fix | Delete
main_tour.show('settings_save');
[365] Fix | Delete
}
[366] Fix | Delete
scroll_to_popup();
[367] Fix | Delete
[368] Fix | Delete
}
[369] Fix | Delete
},
[370] Fix | Delete
{
[371] Fix | Delete
classes: button_classes,
[372] Fix | Delete
text: updraftplus_tour_i18n.premium.button,
[373] Fix | Delete
action: main_tour.cancel
[374] Fix | Delete
}
[375] Fix | Delete
],
[376] Fix | Delete
when: {
[377] Fix | Delete
show: function() {
[378] Fix | Delete
window.scroll(0, 0)
[379] Fix | Delete
}
[380] Fix | Delete
}
[381] Fix | Delete
});
[382] Fix | Delete
[383] Fix | Delete
// EXTRA STEPS
[384] Fix | Delete
[385] Fix | Delete
// Premium + addons
[386] Fix | Delete
main_tour.addStep('vault_selected', {
[387] Fix | Delete
title: updraftplus_tour_i18n.vault_selected.title,
[388] Fix | Delete
text: updraftplus_tour_i18n.vault_selected.text,
[389] Fix | Delete
attachTo: '#updraftvault_settings_cell top',
[390] Fix | Delete
scrollTo: false,
[391] Fix | Delete
buttons: [
[392] Fix | Delete
{
[393] Fix | Delete
classes: 'udp-tour-back',
[394] Fix | Delete
text: updraftplus_tour_i18n.back,
[395] Fix | Delete
action: function() {
[396] Fix | Delete
main_tour.show('settings_remote_storage');
[397] Fix | Delete
}
[398] Fix | Delete
},
[399] Fix | Delete
{
[400] Fix | Delete
classes: button_classes,
[401] Fix | Delete
text: updraftplus_tour_i18n.next,
[402] Fix | Delete
action: function() {
[403] Fix | Delete
main_tour.show('settings_more');
[404] Fix | Delete
}
[405] Fix | Delete
}
[406] Fix | Delete
],
[407] Fix | Delete
when: {
[408] Fix | Delete
show: function(p) {
[409] Fix | Delete
scroll_to_popup();
[410] Fix | Delete
}
[411] Fix | Delete
}
[412] Fix | Delete
});
[413] Fix | Delete
[414] Fix | Delete
// Saved settings
[415] Fix | Delete
main_tour.addStep('settings_saved', {
[416] Fix | Delete
title: updraftplus_tour_i18n.settings_saved.title,
[417] Fix | Delete
text: updraftplus_tour_i18n.settings_saved.text,
[418] Fix | Delete
attachTo: '#updraftplus-settings-save top',
[419] Fix | Delete
scrollTo: false,
[420] Fix | Delete
buttons: [
[421] Fix | Delete
{
[422] Fix | Delete
classes: 'udp-tour-back',
[423] Fix | Delete
text: updraftplus_tour_i18n.back,
[424] Fix | Delete
action: function() {
[425] Fix | Delete
main_tour.show('settings_more');
[426] Fix | Delete
}
[427] Fix | Delete
},
[428] Fix | Delete
{
[429] Fix | Delete
classes: button_classes,
[430] Fix | Delete
text: updraftplus_tour_i18n.next,
[431] Fix | Delete
action: function() {
[432] Fix | Delete
if ($('#updraftcentral_cloud_connect_container').length) {
[433] Fix | Delete
main_tour.show('updraft_central');
[434] Fix | Delete
} else {
[435] Fix | Delete
$('#updraft-navtab-addons').trigger('click');
[436] Fix | Delete
}
[437] Fix | Delete
}
[438] Fix | Delete
}
[439] Fix | Delete
],
[440] Fix | Delete
when: {
[441] Fix | Delete
show: function() {
[442] Fix | Delete
scroll_to_popup();
[443] Fix | Delete
}
[444] Fix | Delete
}
[445] Fix | Delete
});
[446] Fix | Delete
[447] Fix | Delete
main_tour.steps.forEach(function(step) {
[448] Fix | Delete
step.once('show', function() {
[449] Fix | Delete
// Adds a Close label near the (x)
[450] Fix | Delete
var close_btn = $(this.el).find('header .shepherd-cancel-link');
[451] Fix | Delete
close_btn.attr('data-btntext', updraftplus_tour_i18n.close);
[452] Fix | Delete
[453] Fix | Delete
// opens the settings tab
[454] Fix | Delete
$(this.el).find('.js--go-to-settings').on('click', function(e) {
[455] Fix | Delete
e.preventDefault();
[456] Fix | Delete
$('#updraft-navtab-settings').trigger('click');
[457] Fix | Delete
});
[458] Fix | Delete
})
[459] Fix | Delete
});
[460] Fix | Delete
[461] Fix | Delete
// on Cancel
[462] Fix | Delete
main_tour.on('cancel', cancel_tour);
[463] Fix | Delete
plugins_page_tour.on('cancel', cancel_tour);
[464] Fix | Delete
[465] Fix | Delete
/**
[466] Fix | Delete
* Cancel tour
[467] Fix | Delete
*/
[468] Fix | Delete
function cancel_tour() {
[469] Fix | Delete
// The tour is either finished or [x] was clicked
[470] Fix | Delete
main_tour.canceled = true;
[471] Fix | Delete
var data = {
[472] Fix | Delete
current_step: this.getCurrentStep().id
[473] Fix | Delete
};
[474] Fix | Delete
[475] Fix | Delete
if ('function' === typeof updraft_send_command) {
[476] Fix | Delete
updraft_send_command(
[477] Fix | Delete
'set_tour_status',
[478] Fix | Delete
data,
[479] Fix | Delete
function(response) {
[480] Fix | Delete
console.log('Successfully deactivated tour');
[481] Fix | Delete
},
[482] Fix | Delete
{ alert_on_error: false }
[483] Fix | Delete
);
[484] Fix | Delete
} else {
[485] Fix | Delete
jQuery.ajax({
[486] Fix | Delete
url: ajaxurl,
[487] Fix | Delete
type: 'POST',
[488] Fix | Delete
data: {
[489] Fix | Delete
action: 'updraft_ajax',
[490] Fix | Delete
subaction: 'set_tour_status',
[491] Fix | Delete
nonce: updraftplus_tour_i18n.nonce,
[492] Fix | Delete
current_step: this.getCurrentStep().id
[493] Fix | Delete
}
[494] Fix | Delete
});
[495] Fix | Delete
}
[496] Fix | Delete
};
[497] Fix | Delete
[498] Fix | Delete
/**
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function