mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Remove old javascript
This commit is contained in:
parent
c68a2a36fa
commit
d92893b2c7
|
@ -469,28 +469,6 @@
|
|||
}).appendTo(form);
|
||||
|
||||
form.attr('action', '/reports/savedtemplate').submit();
|
||||
|
||||
// let elements = Array.from(document.getElementById("custom-report-form").elements).map(item=>item.name);
|
||||
// console.log(elements);
|
||||
//
|
||||
// $("#savetemplateoptions").val(elements)
|
||||
//
|
||||
// let formElement = document.getElementById('custom-report-form')
|
||||
//
|
||||
// let inputsAsArray = Array.from(formElement.elements)
|
||||
//
|
||||
// inputsAsArray.map(function(item){
|
||||
// // not a real method
|
||||
// if (item.isACheckbox()){
|
||||
// return {name: item.name, type: checkbox, checked: item.checked};
|
||||
// }
|
||||
//
|
||||
// if (item.isASelect){
|
||||
// return {name:item.name, type: select, selected: [item.elements]}
|
||||
// }
|
||||
// })
|
||||
// // set hidden input to variable
|
||||
// e.currentTarget.submit();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue