Skip to content
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

Fix indentation in _users.html.erb file #11033

Merged
merged 6 commits into from
Apr 13, 2022
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
46 changes: 23 additions & 23 deletions app/views/spam2/_users.html.erb
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<script>
$(document).ready(function () {
var table = table_main("#flag_table");
$("#all").click(function () { //select all button
select_all();
var table = table_main("#flag_table");
$("#all").click(function () { //select all button
select_all();
});
var pageselect = localStorage.getItem('page-select') || '30';
$("#pageselect").val(pageselect);
$('#pageselect').change(function () {
pagination("#pageselect", "/spam2/users/filter/");
$('#pageselect').change(function () {
pagination("#pageselect", "/spam2/users/filter/");
});
$("#batch-ban").bind('click', function (e) { //batch ban user
batch_nav("batch_ban_user");
});
$("#batch-unban").bind('click', function (e) { //batch unban user
batch_nav("batch_unban_user");
});
$('#banned').on('click', function () { //banned filter
search_table("banned", "/spam2/users/filter/");
});
$('#moderator').on('click', function () { // moderator filter
search_table("moderator", "/spam2/users/filter/");
});
$('#admin').on('click', function () { // admin filter
search_table("admin", "/spam2/users/filter/");
});
$('#reset').on('click', function () { // all filter
search_table("all", "/spam2/users/filter/");
});
$("#batch-ban").bind('click', function (e) { //batch ban user
batch_nav("batch_ban_user");
});
$("#batch-unban").bind('click', function (e) { //batch unban user
batch_nav("batch_unban_user");
});
$('#banned').on('click', function () { //banned filter
search_table("banned", "/spam2/users/filter/");
});
$('#moderator').on('click', function () { // moderator filter
search_table("moderator", "/spam2/users/filter/");
});
$('#admin').on('click', function () { // admin filter
search_table("admin", "/spam2/users/filter/");
});
$('#reset').on('click', function () { // all filter
search_table("all", "/spam2/users/filter/");
});
});
</script>
<div class="card" id="table-card">
Expand Down