Creation of the world
This commit is contained in:
23
js/getProjectsList.php
Normal file
23
js/getProjectsList.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?header('Content-type: application/javascript');
|
||||
|
||||
$token = $_GET['token'];
|
||||
|
||||
?>
|
||||
|
||||
function cbfunc(o){
|
||||
|
||||
var name = o[0].name;
|
||||
|
||||
var id = o[0].id;
|
||||
|
||||
|
||||
|
||||
if(id == undefined){
|
||||
|
||||
$('body').append('<span>ERROR</span>');
|
||||
|
||||
}else{
|
||||
|
||||
$.get('saveTodoist.php', {name: name, id: id}, function(){
|
||||
|
||||
window.location.reload();
|
Reference in New Issue
Block a user