Team:UNITN-Trento/Templates/Notebook

From 2013.igem.org

(Difference between revisions)
Line 28: Line 28:
last_id = id;
last_id = id;
}
}
-
 
-
//Add 'add post' button
 
-
var addpost_url = href.split('/');
 
-
addpost_url.pop();
 
-
addpost_url = addpost_url.join('/');
 
-
addpost_url += "/" + (parseInt(id)+1) + "?action=edit&preload=Team:UNITN-Trento/Help/Labpost_AJAX";
 
-
addpost_url = "https://2013.igem.org" + addpost_url;
 
-
$("<a>Add new LabPost_AJ</a>").attr( 'href' , addpost_url ).addClass("tn-addpost").appendTo("#aj_cont");
 
});
});
 +
 +
//Add 'add post' button
 +
var addpost_url = href.split('/');
 +
addpost_url.pop();
 +
addpost_url = addpost_url.join('/');
 +
addpost_url += "/" + (parseInt(last_id)+1) + "?action=edit&preload=Team:UNITN-Trento/Help/Labpost_AJAX";
 +
addpost_url = "https://2013.igem.org" + addpost_url;
 +
$("<a>Add new LabPost_AJ</a>").attr( 'href' , addpost_url ).addClass("tn-addpost").appendTo("#aj_cont");
});
});

Revision as of 07:22, 19 August 2013

Filter by DATE
 
Sun Mon Tue Wed Thu Fri Sat
             
             
             
             
             
             
{{{1}}}
Filter by WHO
Filter by TAG
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Notebook&action=edit Edit this page] | Main Page