-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Prevent double click new issue/pull/comment button #16157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
6adb632
f68a50f
b12a87e
be492c2
bd21494
27cf13e
cf4bef2
921dad9
da22521
9fd3b09
acd8874
9b7bebe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -142,6 +142,15 @@ export function initGlobalCommon() { | |||||||
window.location = href; | ||||||||
} | ||||||||
}); | ||||||||
|
||||||||
// loading-button this logic used to prevent push one form more than one time | ||||||||
$(document).on('click', '.button.loading-button', function () { | ||||||||
const $btn = $(this); | ||||||||
|
||||||||
if ($btn.hasClass('loading')) return false; | ||||||||
|
||||||||
$btn.addClass('loading disabled'); | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Should we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. looks semantic ui has handled it, just add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But what if it is not a Fomantic UI button? For example, what if some one writes a form without If you require the developers to use your code in Fomantic UI context, you should change the selector to |
||||||||
}); | ||||||||
} | ||||||||
|
||||||||
export function initGlobalDropzone() { | ||||||||
|
Uh oh!
There was an error while loading. Please reload this page.