Comp-Klasse hinzugefügt, um DOM-Komponenten effizient zu cachen und zu verwalten.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user