mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Restore click behaviour for table links and rows
Multiselect handlers should influence only multiselect tables. Still unhappy with current behaviour, but links should work fine right now. refs #6162
This commit is contained in:
parent
cf82ac68cc
commit
03e8ba88e4
@ -95,10 +95,10 @@
|
|||||||
|
|
||||||
// We want to catch each link click
|
// We want to catch each link click
|
||||||
$(document).on('click', 'a', { self: this }, this.linkClicked);
|
$(document).on('click', 'a', { self: this }, this.linkClicked);
|
||||||
|
$(document).on('click', 'tr[href]', { self: this }, this.linkClicked);
|
||||||
|
|
||||||
// Select a table row
|
// Select a table row
|
||||||
$(document).on('click', 'table.action tr[href]', { self: this }, this.rowSelected);
|
$(document).on('click', 'table.multiselect tr[href]', { self: this }, this.rowSelected);
|
||||||
$(document).on('click', 'table.action tr a', { self: this }, this.rowSelected);
|
|
||||||
|
|
||||||
$(document).on('click', 'button', { self: this }, this.submitForm);
|
$(document).on('click', 'button', { self: this }, this.submitForm);
|
||||||
|
|
||||||
@ -432,8 +432,8 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore links inside of tables.
|
// ignore multiselect table row clicks
|
||||||
if ($a.closest('table tr').length > 0) {
|
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user