This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).
- Add a protocol.
Line 7: | Line 7: | ||
<li> | <li> | ||
Add a protocol. | Add a protocol. | ||
- | <form action='index.php' method='GET' id='newProtocolForm'> | + | <form action='/index.php' method='GET' id='newProtocolForm'> |
Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' /> | Team:EPF-Lausanne/Protocol/<input type='text' id='title' value='' /> | ||
<input type='hidden' id='hiddenTitle' name='title' /> | <input type='hidden' id='hiddenTitle' name='title' /> | ||
Line 16: | Line 16: | ||
<script type='text/javascript'> | <script type='text/javascript'> | ||
$("#newProtocolForm").submit(function(){ | $("#newProtocolForm").submit(function(){ | ||
- | $("#hiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#title").val); | + | $("#hiddenTitle").val("Team:EPF-Lausanne/Protocol/"+$("#title").val()); |
+ | return true; | ||
}); | }); | ||
</script> | </script> |
This page provides some helpers to create new pages (i.e. automatic insertion of the correct templates).