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
Realtime check for available shortlink #379
Conversation
* Enable shortlink auto check when users type to `.custom-url-field` * Remove `.check-link-availability` button
public/js/index.js
Outdated
} | ||
}); | ||
var timeoutId; | ||
$('.custom-url-field').keyup(function (){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should wait until the user has finished typing before checking if it is available.
I've used the typewatch jquery plugin before for this purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I will update this PR soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated @overint
Any thoughts @cydrobolt? |
.custom-url-field
.check-link-availability
button