dhasegan / connect.academy

Educational platform
www.connect.academy
MIT License
2 stars 0 forks source link

Double clicking when posting or submitting a forum #40

Closed dhasegan closed 10 years ago

dhasegan commented 10 years ago

Creates two items of the same kind. We have to fix this somehow

dhasegan commented 10 years ago

I did this for submitting a review in the course page. Example for others:

me.reviewFormSubmit = function(event) {
        s.submitReviewButton.attr('disabled', 'disabled');
        s.reviewCollapser.collapse('hide');
        s.expandReviewSubmit.addClass('hidden');

the disabled: disabled is what does the trick, by blocking a further click on the button

dhasegan commented 10 years ago

thanks for the tip, past me