Comp-Klasse hinzugefügt, um DOM-Komponenten effizient zu cachen und zu verwalten.
This commit is contained in:
parent
07ad18eccb
commit
a1d251d705
@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-group btn_group position-fixed bottom-0 end-0 d-flex align-items-center" role="group" aria-label="Basic mixed styles example">
|
||||
<div id="flex-actio-panel" class="btn-group btn_group position-fixed bottom-0 end-0 d-flex align-items-center" role="group" aria-label="Basic mixed styles example">
|
||||
<button class="btn_complete btn btn-primary" type="button">
|
||||
<svg class="icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 16">
|
||||
<path d="m10.036 8.278 9.258-7.79A1.979 1.979 0 0 0 18 0H2A1.987 1.987 0 0 0 .641.541l9.395 7.737Z" />
|
||||
|
||||
@ -33,4 +33,17 @@ $('.btn_reject').click(_ =>
|
||||
}
|
||||
else
|
||||
Swal.showValidationMessage(`Request failed: ${res.message}`);
|
||||
}));
|
||||
}));
|
||||
|
||||
|
||||
class Comp{
|
||||
static __fActPanel;
|
||||
static get ActPanel(){
|
||||
if(Comp.__fActPanel)
|
||||
return Comp.__fActPanel
|
||||
else{
|
||||
Comp.__fActPanel = document.getElementById("flex-actio-panel")
|
||||
return Comp.__fActPanel
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user