File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1414- -> Removed
1515! -> Note
1616
17+ ###WIP
18+ # Fixed duplicate submissions when button is clicked multiple times
19+
1720Version 8.1.3
1821# Fixed profile link not working
1922
Original file line number Diff line number Diff line change @@ -544,6 +544,9 @@ jQuery(document).ready(function($) {
544544 request [ 'Itemid' ] = params . itemId ;
545545 }
546546
547+ var submitButton = $ ( '#shoutbox-submit' ) ;
548+ submitButton . prop ( 'disabled' , true ) ;
549+
547550 // AJAX request
548551 $ . ajax ( {
549552 type : 'POST' ,
@@ -561,7 +564,8 @@ jQuery(document).ready(function($) {
561564 params . instance . find ( '#shoutbox-name' ) . val ( '' ) ;
562565 }
563566
564- $ ( '#shoutbox-submit' ) . val ( Joomla . JText . _ ( 'SHOUT_SUBMITTEXT' ) ) ;
567+ submitButton . prop ( 'disabled' , false ) ;
568+ submitButton . val ( Joomla . JText . _ ( 'SHOUT_SUBMITTEXT' ) ) ;
565569
566570 $ ( '#shout-submit-type' ) . attr ( 'data-submit-type' , 'insert' )
567571 . attr ( 'data-shout-id' , '' ) ;
You can’t perform that action at this time.
0 commit comments