Skip to content
Browse files

fix bug 777827 - Don't always disable forms upon submission

  • Loading branch information...
1 parent 59a3c09 commit cffc86238b30ccacfae8a26f5812ad21991cca50 @darkwing darkwing committed Aug 16, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −1 apps/wiki/templates/wiki/document_revisions.html
  2. +4 −0 media/js/main.js
View
2 apps/wiki/templates/wiki/document_revisions.html
@@ -28,7 +28,7 @@ <h1 class="title">{{ _('History of') }} <a href="{{ url('wiki.document', documen
</div>
<div id="revision-list">
{% if revisions %}
- <form action="{{ url('wiki.compare_revisions', document.full_path) }}" method="get">
+ <form action="{{ url('wiki.compare_revisions', document.full_path) }}" method="get" class="nodisable">
{% if revisions | length > 1 %}
<div class="compare top">
<input type="submit" class="link-btn" value="{% if document.parent %}{{ _('Compare Selected Translations') }}{% else %}{{ _('Compare Selected Revisions') }}{% endif %}" />
View
4 media/js/main.js
@@ -79,6 +79,10 @@ k = {};
function disableFormsOnSubmit() {
$('form').submit(function(ev) {
var $this = $(this);
+
+ // Allow for a special CSS class to prevent this functionality
+ if($this.hasClass('nodisable')) return;
+
if ($this.data('disabled')) {
ev.preventDefault();
} else {

0 comments on commit cffc862

Please sign in to comment.
Something went wrong with that request. Please try again.