mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-18 08:09:34 +00:00
Simplify reference
This commit is contained in:
parent
7993228469
commit
f064e4d347
2 changed files with 4 additions and 4 deletions
|
|
@ -42,11 +42,11 @@ export default class extends DatatablesController {
|
|||
|
||||
const selectPanel = this.selectPanelTarget;
|
||||
|
||||
//Toggle action button based on selection
|
||||
//Enable action button based on selection
|
||||
if (count > 0) {
|
||||
document.getElementById("selectPanel_submit").disabled = false;
|
||||
selectPanel.querySelector('button[type="submit"]').disabled = false;
|
||||
} else {
|
||||
document.getElementById("selectPanel_submit").disabled = true;
|
||||
selectPanel.querySelector('button[type="submit"]').disabled = true;
|
||||
}
|
||||
|
||||
//Update selection count text
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
{# This is left empty, as this will be filled by Javascript #}
|
||||
</select>
|
||||
|
||||
<button id="selectPanel_submit" disabled type="submit" class="btn btn-primary">{% trans %}part_list.action.submit{% endtrans %}</button>
|
||||
<button disabled type="submit" class="btn btn-primary">{% trans %}part_list.action.submit{% endtrans %}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue