[cpif] r290 - trunk/frontend-web/skins/default
svn at argo.es
svn at argo.es
Thu Jul 26 19:51:15 CEST 2007
Author: alvaro
Date: Thu Jul 26 19:51:14 2007
New Revision: 290
Log:
Cambiado el javascript.
Modified:
trunk/frontend-web/skins/default/body_threadlist.html
trunk/frontend-web/skins/default/footer.html
trunk/frontend-web/skins/default/js.js
Modified: trunk/frontend-web/skins/default/body_threadlist.html
==============================================================================
--- trunk/frontend-web/skins/default/body_threadlist.html (original)
+++ trunk/frontend-web/skins/default/body_threadlist.html Thu Jul 26 19:51:14 2007
@@ -1,9 +1,9 @@
<h2>Subforo: %(metatag_title)s</h2>
<p class="right"><a href="%(link_mark_as_read)s">Marcar todos los hilos como leidos</a></p>
%(body)s
+ <p class="right"><a href="javascript:toggleBox('form', 2);">Iniciar un nuevo hilo</a></p>
</div>
<div id="form">
- <a href="javascript:toggleBox('fNewthread');">Iniciar un nuevo hilo</a>
<form id="fNewthread" action="%(link_form_new_thread)s" method="post" enctype="multipart/form-data">
<p>
<label for="titulo">Título:</label> <input type="text" name="titulo" id="titulo" size="60" value="" /><br />
Modified: trunk/frontend-web/skins/default/footer.html
==============================================================================
--- trunk/frontend-web/skins/default/footer.html (original)
+++ trunk/frontend-web/skins/default/footer.html Thu Jul 26 19:51:14 2007
@@ -1,3 +1,6 @@
<p class="version">Versión: %(version)d</p>
+<script type="text/javascript">
+ window.onload = toggleBox('form',0);
+</script>
</body>
</html>
Modified: trunk/frontend-web/skins/default/js.js
==============================================================================
--- trunk/frontend-web/skins/default/js.js (original)
+++ trunk/frontend-web/skins/default/js.js Thu Jul 26 19:51:14 2007
@@ -70,18 +70,4 @@
/* } */
}
-window.onload = toggleBox('form',0);
-
-function toggleBox(id) {
- if(document.layers) {
- document.layers[id].display = document.layers[id].display=="block" ? "none" : "block";
- }
- else if(document.getElementById) {
- var obj = document.getElementById(id);
- obj.style.display = obj.style.display == "none" ? "block" : "none";
- }
- else if(document.all) {
- document.all[id].style.display = document.all[id].style.display == "none" ? "block" : "none";
- }
-}
More information about the cpif
mailing list