mangadex/scripts/js/users.req.js

6 lines
291 B
JavaScript
Raw Normal View History

2021-03-14 17:31:55 -04:00
$("#user_search_form").submit(function(event) {
var username = encodeURIComponent($("#username").val());
$("#search_button").html("<?= display_fa_icon('spinner', '', 'fa-pulse') ?> Searching...").attr("disabled", true);
location.href = "/users/0/1/"+username;
event.preventDefault();
});