Support for old browsers
This commit is contained in:
parent
78df3e7237
commit
03d836fb8c
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue