diff options
author | Luke Macken <lmacken@redhat.com> | 2008-01-18 12:06:38 -0500 |
---|---|---|
committer | Luke Macken <lmacken@redhat.com> | 2008-01-18 12:06:38 -0500 |
commit | 6e901789f539a25b50512c0504a4338fa638a743 (patch) | |
tree | c239f7aab71130c4e0a02f119a558e52ac2f647f /funcweb/funcweb/templates | |
parent | 3d93c47dafe278967fe0a1f655c72c9a72165b69 (diff) | |
download | func-6e901789f539a25b50512c0504a4338fa638a743.tar.gz func-6e901789f539a25b50512c0504a4338fa638a743.tar.xz func-6e901789f539a25b50512c0504a4338fa638a743.zip |
Actually, .hide().load() should be sufficient, instead of hide().empty().load().
Diffstat (limited to 'funcweb/funcweb/templates')
-rw-r--r-- | funcweb/funcweb/templates/method.html | 2 | ||||
-rw-r--r-- | funcweb/funcweb/templates/minion.html | 2 | ||||
-rw-r--r-- | funcweb/funcweb/templates/minions.html | 2 | ||||
-rw-r--r-- | funcweb/funcweb/templates/module.html | 2 |
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> |