Skip to content

Commit

Permalink
Editor: Prevent multiple click on Convert playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao committed Jul 15, 2024
1 parent e9c4a5b commit 875f91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/region-designer-javascript.twig
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
});
// Handle convert playlist
form.find('#convertPlaylistButton').click(convertPlaylist);
var throttleConverPlaylist = _.debounce(convertPlaylist, 400, true);
form.find('#convertPlaylistButton').click(throttleConverPlaylist);
form.find('[name="top"], [name="left"], [name="width"], [name="height"], [name="zIndex"]').on('change', _.debounce(function(){
formChangesRegion();
Expand Down

0 comments on commit 875f91d

Please sign in to comment.