Created
February 15, 2016 03:59
-
-
Save torrance/971ced40b573c70784e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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