Team:UNITN-Trento/Templates/Notebook
From 2013.igem.org
(Difference between revisions)
Line 31: | Line 31: | ||
//Add 'add post' button | //Add 'add post' button | ||
var addpost_url = href.split('/'); | var addpost_url = href.split('/'); | ||
- | |||
addpost_url.pop(); | addpost_url.pop(); | ||
- | + | addpost_url = addpost_url.join('/'); | |
- | + | addpost_url += id + "?action=raw&ctype=text/javascript"; | |
- | addpost_url = addpost_url.join(' | + | addpost_url = "http:/" + addpost_url; |
- | + | ||
- | addpost_url += "?action=raw&ctype=text/javascript"; | + | |
alert(addpost_url); | alert(addpost_url); | ||
$("<a>Add new LabPost_AJ</a>").attr( 'href' , addpost_url ).addClass("tn-addpost").appendTo("#aj_cont"); | $("<a>Add new LabPost_AJ</a>").attr( 'href' , addpost_url ).addClass("tn-addpost").appendTo("#aj_cont"); |
Revision as of 07:14, 19 August 2013
[http://2013.igem.org/wiki/index.php?title=Team:UNITN-Trento/Templates/Notebook&action=edit Edit this page] | Main Page
Retrieved from "http://2013.igem.org/Team:UNITN-Trento/Templates/Notebook"