Support for old browsers

This commit is contained in:
MatteoGheza 2021-05-28 13:23:57 +00:00
parent 78df3e7237
commit 03d836fb8c
4 changed files with 8 additions and 8 deletions

View File

@ -66,7 +66,7 @@
<a class="pjax_disable icon" id="menuButton"></a>
</div>
<script nonce="{{ nonce }}">
$("#logout-text").click(()=>{ location.href='{{ urlsoftware }}logout.php'; });
$("#logout-text").click(function(){ location.href='{{ urlsoftware }}logout.php'; });
</script>
{# /Menu #}
{% endblock %}

View File

@ -90,7 +90,7 @@
{{ 'Search'|t }}
</button>
<script nonce="{{ nonce }}">
$("#search_button").click(()=>{
$("#search_button").click(function(){
allertaJS.maps.addrSearch('{{ 'Search results'|t }}', '{{ 'No results found'|t }}');
});
</script>

View File

@ -74,7 +74,7 @@
{{ 'Search'|t }}
</button>
<script nonce="{{ nonce }}">
$("#search_button").click(()=>{
$("#search_button").click(function(){
allertaJS.maps.addrSearch('{{ 'Search results'|t }}', '{{ 'No results found'|t }}');
});
</script>

View File

@ -69,15 +69,15 @@
</tbody>
</table>
<script nonce="{{ nonce }}">
$("#activate-btn").click(()=>{
$("#activate-btn").click(function(){
allertaJS.main.activate('{{ user.id }}', '');
});
$("#deactivate-btn").click(()=>{
$("#deactivate-btn").click(function(){
allertaJS.main.deactivate('{{ user.id }}', '');
});
allertaJS.main.loadTable({tablePage: "list", useCustomTableEngine: "default", callbackRepeat: true, callback: () => {
$("tbody tr").each((key, el) => {
$(el.children[1]).click((event) => {
allertaJS.main.loadTable({tablePage: "list", useCustomTableEngine: "default", callbackRepeat: true, callback: function() {
$("tbody tr").each(function(key, el) {
$(el.children[1]).click(function(event) {
console.log(event.target);
userId = event.target.parentElement.parentElement.parentElement.firstElementChild.firstElementChild.firstElementChild.id.replace("username-","");
console.log(userId);