summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2011-12-19 21:01:44 (GMT)
committerLuke Macken <lmacken@redhat.com>2011-12-19 21:01:44 (GMT)
commit3673c231b3eb7bcc6e2177db6f6d62478df42058 (patch)
tree8e25d920c9f283d3818e03f4dd6605e3814e64b0
parentc91d864d87d915b062eb9625edf8f9af9869048b (diff)
downloadfedoracommunity-3673c231b3eb7bcc6e2177db6f6d62478df42058.zip
fedoracommunity-3673c231b3eb7bcc6e2177db6f6d62478df42058.tar.gz
fedoracommunity-3673c231b3eb7bcc6e2177db6f6d62478df42058.tar.xz
Dynamically load the patches into an outer patches_container.
This should hopefully avoid some nested #patches divs.
-rw-r--r--fedoracommunity/widgets/package/templates/patches.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/fedoracommunity/widgets/package/templates/patches.mak b/fedoracommunity/widgets/package/templates/patches.mak
index 1a0c982..b888bb1 100644
--- a/fedoracommunity/widgets/package/templates/patches.mak
+++ b/fedoracommunity/widgets/package/templates/patches.mak
@@ -1,6 +1,6 @@
<script type="text/javascript">
function on_change(self) {
- $('#patches').load('/_w/package.sources.patches #patches', {
+ $('#patches_container').load('/_w/package.sources.patches #patches', {
'package_name': '${w.package}',
'branch': self.value
});
@@ -9,6 +9,7 @@ function on_change(self) {
${w.children[0].display(on_change='on_change', package=w.package)}
+<div id="patches_container">
<div id="patches" class="patches">
% if w.patches:
<%namespace file="diffstat.mak" import="render_diffstat"/>
@@ -62,3 +63,4 @@ function toggle_diffstat() {
}
</script>
</div>
+</div>