[cpif] r320 - trunk/frontend-web/skins/default
svn at argo.es
svn at argo.es
Tue Jul 31 13:17:09 CEST 2007
Author: alvaro
Date: Tue Jul 31 13:17:09 2007
New Revision: 320
Log:
Refactorizacion
Modified:
trunk/frontend-web/skins/default/body_metatags_metatag_mon.html
trunk/frontend-web/skins/default/body_metatags_metatag_unmon.html
trunk/frontend-web/skins/default/body_show_thread_mon.html
trunk/frontend-web/skins/default/body_show_thread_unmon.html
trunk/frontend-web/skins/default/js.js
Modified: trunk/frontend-web/skins/default/body_metatags_metatag_mon.html
==============================================================================
--- trunk/frontend-web/skins/default/body_metatags_metatag_mon.html (original)
+++ trunk/frontend-web/skins/default/body_metatags_metatag_mon.html Tue Jul 31 13:17:09 2007
@@ -1 +1 @@
-<a href="javascript:toggle_metatag_mon(%(metatag_num)s);" id="linkmon%(metatag_num)s">Monitorizar</a>
+<a href="#" onClick="toggle_metatag_mon(this,%(metatag_num)s);" id="linkmon%(metatag_num)s">Monitorizar</a>
Modified: trunk/frontend-web/skins/default/body_metatags_metatag_unmon.html
==============================================================================
--- trunk/frontend-web/skins/default/body_metatags_metatag_unmon.html (original)
+++ trunk/frontend-web/skins/default/body_metatags_metatag_unmon.html Tue Jul 31 13:17:09 2007
@@ -1 +1 @@
-<a href="javascript:toggle_metatag_mon(%(metatag_num)s);" id="linkmon%(metatag_num)s">Dejar de monitorizar</a>
+<a href="#" onClick="toggle_metatag_mon(this,%(metatag_num)s);" id="linkmon%(metatag_num)s">Dejar de monitorizar</a>
Modified: trunk/frontend-web/skins/default/body_show_thread_mon.html
==============================================================================
--- trunk/frontend-web/skins/default/body_show_thread_mon.html (original)
+++ trunk/frontend-web/skins/default/body_show_thread_mon.html Tue Jul 31 13:17:09 2007
@@ -1 +1 @@
-<a href="javascript:toggle_thread_mon(%(thread_num)s);" id="linkmon%(thread_num)s">Monitorizar</a>
+<a href="#" onClick="toggle_thread_mon(this,%(thread_num)s);" id="linkmon%(thread_num)s">Monitorizar</a>
Modified: trunk/frontend-web/skins/default/body_show_thread_unmon.html
==============================================================================
--- trunk/frontend-web/skins/default/body_show_thread_unmon.html (original)
+++ trunk/frontend-web/skins/default/body_show_thread_unmon.html Tue Jul 31 13:17:09 2007
@@ -1 +1 @@
-<a href="javascript:toggle_thread_mon(%(thread_num)s);" id="linkmon%(thread_num)s">Dejar de monitorizar</a>
+<a href="#" onClick="toggle_thread_mon(this,%(thread_num)s);" id="linkmon%(thread_num)s">Dejar de monitorizar</a>
Modified: trunk/frontend-web/skins/default/js.js
==============================================================================
--- trunk/frontend-web/skins/default/js.js (original)
+++ trunk/frontend-web/skins/default/js.js Tue Jul 31 13:17:09 2007
@@ -24,7 +24,7 @@
}
}
-function toggle_metatag_mon(id) {
+function toggle_metatag_mon(link,id) {
var req = false;
try {
req = new XMLHttpRequest();
@@ -43,7 +43,7 @@
}
-function toggle_thread_mon(id) {
+function toggle_thread_mon(link,id) {
var req = false;
try {
req = new XMLHttpRequest();
@@ -56,7 +56,6 @@
req.send("");
var xml = req.responseXML;
var txt = xml.getElementsByTagName("msg")[0].textContent;
- var link = document.getElementById("linkmon"+id);
link.innerHTML = txt;
}
More information about the cpif
mailing list