File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ projects[drupal][patch][] = "https://raw.githubusercontent.com/os2loop/profile/m
1818projects[loopdk][type] = "profile"
1919projects[loopdk][download][type] = "git"
2020projects[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 "
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ scripts[] = scripts/modernizr.min.js
1616scripts[] = scripts/chosen.jquery.js
1717scripts[] = scripts/use-chosen.min.js
1818scripts[] = scripts/toggle.js
19+ scripts[] = scripts/form.js
1920
2021; Stylesheets
2122stylesheets[all][] = css/styles.css
Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments