Skip to content

Commit 6f83723

Browse files
committed
Merge branch 'develop'
2 parents c137a43 + 41668ef commit 6f83723

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

drupal.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ projects[drupal][patch][] = "https://raw.githubusercontent.com/os2loop/profile/m
1818
projects[loopdk][type] = "profile"
1919
projects[loopdk][download][type] = "git"
2020
projects[loopdk][download][url] = "https://github.com/os2loop/profile.git"
21-
projects[loopdk][download][tag] = "1.4.2"
21+
projects[loopdk][download][tag] = "1.4.8"

themes/loop/loop.info

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ scripts[] = scripts/modernizr.min.js
1616
scripts[] = scripts/chosen.jquery.js
1717
scripts[] = scripts/use-chosen.min.js
1818
scripts[] = scripts/toggle.js
19+
scripts[] = scripts/form.js
1920

2021
; Stylesheets
2122
stylesheets[all][] = css/styles.css

themes/loop/scripts/form.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(function($) {
2+
$(function () {
3+
// Disable all submit buttons on submit to prevent multiple
4+
// submits.
5+
// Using the "submit" event on the form is too slow (late), so we
6+
// use the "click" event on the button itself.
7+
$('form [type="submit"]').on('click', function() {
8+
$(this).closest('form').find('[type="submit"]').prop('disabled', true);
9+
});
10+
});
11+
})(jQuery);

0 commit comments

Comments
 (0)