Initial commit
This commit is contained in:
11
assets/js/frontend.js
Normal file
11
assets/js/frontend.js
Normal file
@@ -0,0 +1,11 @@
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const fileInput = document.getElementById('sts_ticket_attachment');
|
||||
if (fileInput) {
|
||||
fileInput.addEventListener('change', function() {
|
||||
const fileNameSpan = document.getElementById('sts-file-name');
|
||||
if (this.files.length > 0) {
|
||||
fileNameSpan.textContent = this.files[0].name;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user