summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-18 12:06:38 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-18 12:06:38 -0500
commit6e901789f539a25b50512c0504a4338fa638a743 (patch)
treec239f7aab71130c4e0a02f119a558e52ac2f647f /funcweb
parent3d93c47dafe278967fe0a1f655c72c9a72165b69 (diff)
downloadthird_party-func-6e901789f539a25b50512c0504a4338fa638a743.tar.gz
third_party-func-6e901789f539a25b50512c0504a4338fa638a743.tar.xz
third_party-func-6e901789f539a25b50512c0504a4338fa638a743.zip
Actually, .hide().load() should be sufficient, instead of hide().empty().load().
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 fe1fef5..1f67ce9 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').empty().load('/run/${minion}/${module}/${method}/').show('slow'); return false;">
+ <form action="" method="GET" onsubmit="$('#results').hide().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 b1961bd..2223d57 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').hide().empty();$('#col3').hide().empty().load('/minion/${minion}/${module}').show('slow');">${module}</a>
+ <a href="#" onclick="$('#col4').hide();$('#col3').hide().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 1581662..f303a43 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').hide().empty();$('#col4').hide().empty();$('#col2').hide().empty().load('/minion/${minion}').show('slow');" href="#">${minion}</a>
+ <a onclick="$('#col3').hide();$('#col4').hide();$('#col2').hide().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 2ac3dc5..2d433f6 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').hide().empty().load('/minion/${minion}/${module}/${method}').show('slow')">${method}</a>
+ <a href="#" onclick="$('#col4').hide().load('/minion/${minion}/${module}/${method}').show('slow')">${method}</a>
</li>
</ul>
</div>