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:
Thomas Gelf 2014-05-09 14:53:34 +00:00
parent cf82ac68cc
commit 03e8ba88e4

View File

@ -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;
}