Skip to content

Instantly share code, notes, and snippets.

@torrance
Created February 15, 2016 03:59
Show Gist options
  • Save torrance/971ced40b573c70784e5 to your computer and use it in GitHub Desktop.
Save torrance/971ced40b573c70784e5 to your computer and use it in GitHub Desktop.
diff --git a/sites/all/themes/abalone/js/abalone.js b/sites/all/themes/abalone/js/abalone.js
index fbdbbd3..6dd7b22 100644
--- a/sites/all/themes/abalone/js/abalone.js
+++ b/sites/all/themes/abalone/js/abalone.js
@@ -4,8 +4,7 @@
// Keep the top level menu open
event.preventDefault();
event.stopPropagation();
- // Close any other child menus
- // that are not our decendents
+ // Close any other child menus that are not our descendants.
var that = this;
$('.dropdown-menu li').each(function() {
if ($(this).find(that).length === 0) {
@@ -15,5 +14,12 @@
// Open the child
$(this).parent().toggleClass('open');
});
+ // https://redmine.fuzion.co.nz/issues/9661
+ $('.webform-client-form-38029').on('submit', function(e) {
+ $('.webform-submit', this)
+ .html('<span class="icon glyphicon glyphicon-ok" aria-hidden="true"><span> Saving ...')
+ .css({backgroundColor: '#999', borderColor: '#666'})
+ .attr('disabled', 'disabled');
+ });
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment