$res = json_decode($response, true);
$client_id = $res['client_id'];
$(document).ready(function(){
$("#rename").click(function(){
let list_item = $("li").first();
let isTest;
let isDeploy;
for (let i = 0; i < $("li").length; i++) {
try {
isTest = list_item.text().search("Test") == 0;
isDeploy = list_item.text().search("Deploy") == 0;
if (!isTest && !isDeploy) {
list_item.html(list_item.children()[0].outerHTML + "Тестировать "+list_item.text());
}
list_item = list_item.next();
} catch (err) {
alert(err);
}
}
})
})