summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-18 01:50:03 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-18 01:50:03 -0500
commit2f5e39c567aed2bf0e1f40d9cb016ef014cdc876 (patch)
tree3a32f3ce3104616458262dbe029600e1f3615254 /funcweb
parent5c3da54171eb0520eb9da01bc11da96db4332080 (diff)
downloadthird_party-func-2f5e39c567aed2bf0e1f40d9cb016ef014cdc876.tar.gz
third_party-func-2f5e39c567aed2bf0e1f40d9cb016ef014cdc876.tar.xz
third_party-func-2f5e39c567aed2bf0e1f40d9cb016ef014cdc876.zip
hide() before calling empty(), as to not kill our animations (if we actually care)
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/templates/method.html2
-rw-r--r--funcweb/funcweb/templates/minion.html2
-rw-r--r--funcweb/funcweb/templates/minions.html2
-rw-r--r--funcweb/funcweb/templates/module.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/funcweb/funcweb/templates/method.html b/funcweb/funcweb/templates/method.html
index 6cd2dc4..fe1fef5 100644
--- a/funcweb/funcweb/templates/method.html
+++ b/funcweb/funcweb/templates/method.html
@@ -6,7 +6,7 @@
<div class="method">
${minion}.${module}.${method}
- <form action="" method="GET" onsubmit="$('#results').load('/run/${minion}/${module}/${method}/').show('slow'); return false;">
+ <form action="" method="GET" onsubmit="$('#results').empty().load('/run/${minion}/${module}/${method}/').show('slow'); return false;">
<input type="text" name="arguments" id="methodargs" class="methodargs"/>
</form>
<div class="results" id="results" />
diff --git a/funcweb/funcweb/templates/minion.html b/funcweb/funcweb/templates/minion.html
index 37c6d47..b1961bd 100644
--- a/funcweb/funcweb/templates/minion.html
+++ b/funcweb/funcweb/templates/minion.html
@@ -7,7 +7,7 @@
<ul py:for="minion, mods in modules.items()">
<h2>${minion}</h2>
<li py:for="module in mods">
- <a href="#" onclick="$('#col4').empty();$('#col3').empty().load('/minion/${minion}/${module}').show('slow');">${module}</a>
+ <a href="#" onclick="$('#col4').hide().empty();$('#col3').hide().empty().load('/minion/${minion}/${module}').show('slow');">${module}</a>
</li>
</ul>
</div>
diff --git a/funcweb/funcweb/templates/minions.html b/funcweb/funcweb/templates/minions.html
index 6892149..1581662 100644
--- a/funcweb/funcweb/templates/minions.html
+++ b/funcweb/funcweb/templates/minions.html
@@ -10,7 +10,7 @@
<ul>
<li><h2>minions</h2></li>
<li py:for="minion in minions.keys()">
- <a onclick="$('#col3').empty();$('#col4').empty();$('#col2').empty().load('/minion/${minion}').show('slow');" href="#">${minion}</a>
+ <a onclick="$('#col3').hide().empty();$('#col4').hide().empty();$('#col2').hide().empty().load('/minion/${minion}').show('slow');" href="#">${minion}</a>
</li>
</ul>
</div>
diff --git a/funcweb/funcweb/templates/module.html b/funcweb/funcweb/templates/module.html
index 2e63295..2ac3dc5 100644
--- a/funcweb/funcweb/templates/module.html
+++ b/funcweb/funcweb/templates/module.html
@@ -7,7 +7,7 @@
<ul py:for="minion, methods in modules.items()">
<h2>${module}</h2>
<li py:for="method in methods">
- <a href="#" onclick="$('#col4').empty().load('/minion/${minion}/${module}/${method}').show('slow')">${method}</a>
+ <a href="#" onclick="$('#col4').hide().empty().load('/minion/${minion}/${module}/${method}').show('slow')">${method}</a>
</li>
</ul>
</div>