mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +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
|
||||
$(document).on('click', 'a', { self: this }, this.linkClicked);
|
||||
$(document).on('click', 'tr[href]', { self: this }, this.linkClicked);
|
||||
|
||||
// Select a table row
|
||||
$(document).on('click', 'table.action tr[href]', { self: this }, this.rowSelected);
|
||||
$(document).on('click', 'table.action tr a', { self: this }, this.rowSelected);
|
||||
$(document).on('click', 'table.multiselect tr[href]', { self: this }, this.rowSelected);
|
||||
|
||||
$(document).on('click', 'button', { self: this }, this.submitForm);
|
||||
|
||||
@ -432,8 +432,8 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
// ignore links inside of tables.
|
||||
if ($a.closest('table tr').length > 0) {
|
||||
// ignore multiselect table row clicks
|
||||
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user