Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove openHeaderSearchBox and closeHeaderSearchBox function #1309

Merged
merged 1 commit into from
Dec 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions app/javascript/front/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const AppView = Backbone.View.extend({

events: {
"click a.likeable": "likeable",
"click .header .form-search .btn-search": "openHeaderSearchBox",
"click .header .form-search .btn-close": "closeHeaderSearchBox",
"click a.button-block-user": "blockUser",
"click a.button-follow-user": "followUser",
"click a.button-block-node": "blockNode",
Expand Down Expand Up @@ -222,18 +220,6 @@ const AppView = Backbone.View.extend({
}
},

openHeaderSearchBox(e) {
$(".header .form-search").addClass("active");
$(".header .form-search input").focus();
return false;
},

closeHeaderSearchBox(e) {
$(".header .form-search input").val("");
$(".header .form-search").removeClass("active");
return false;
},

followUser(e) {
const btn = $(e.currentTarget);
const userId = btn.data("id");
Expand Down