Browse Source

絞込みのリセットを追加

bc-detail
みてるぞ 9 months ago
parent
commit
7852c03368
2 changed files with 15 additions and 2 deletions
  1. +8
    -2
      broadcast/index.frm.php
  2. +7
    -0
      broadcast/script.js

+ 8
- 2
broadcast/index.frm.php View File

@@ -73,8 +73,14 @@
</div>
</div>

<div class="d-grid gap-2 mt-3">
<button type="button" class="btn btn-primary" id="btn-filter">絞り込む</button>
<div class="mt-3 row">
<div class="col gap-2 d-grid">
<button type="button" class="btn btn-secondary" id="btn-reset">元に戻す</button>
</div>

<div class="col gap-2 d-grid">
<button type="button" class="btn btn-primary" id="btn-filter">絞り込む</button>
</div>
</div>
</div>
</div>


+ 7
- 0
broadcast/script.js View File

@@ -48,6 +48,12 @@ Script
window.location.href = url;
});

const resetFilter = (
function ()
{
window.location.href = '/';
});

filterKeyword.addEventListener ('keydown',
function (e)
{
@@ -56,6 +62,7 @@ Script
});

btnFilter.addEventListener ('click', filter);
$ ('#btn-reset').on ('click', resetFilter);
}

static


Loading…
Cancel
Save