	}
			data = JSON.parse(decodeURIComponent(data));
			console.log(configName, data);
			callback(data);
		},
		error: function(data){
			callback("");
		},
		timeout: 3000
	});
}

function setTabIsSaved(tabid, saveState=true){
	var targetTab = findTabWithAttr("tabid",tabid);
	if (!saveState){
		$(targetTab).addClass("notsaved");
	}else{
		$(targetTab).removeClass("notsaved");
	}
	//console.log(targetTab, tabid, saveState);
}

function removeTab(tabid){
	var focusingTabFramematchBeforeRemove = getFocusedTab(