Display the rows in the auth backend configuration as active without any delay

refs #8623
This commit is contained in:
Matthias Jentsch 2015-07-29 15:10:32 +02:00
parent 3a85dc7f39
commit 6db79a72d5
2 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,8 @@
array('backend' => $backendNames[$i]), array('backend' => $backendNames[$i]),
array( array(
'icon' => 'edit', 'icon' => 'edit',
'title' => sprintf($this->translate('Edit user backend %s'), $backendNames[$i]) 'class' => 'rowaction',
'title' => sprintf($this->translate('rEdit user backend %s'), $backendNames[$i])
) )
); ?> ); ?>
</td> </td>

View File

@ -313,13 +313,16 @@
*/ */
ActionTable.prototype.onRowClicked = function (event) { ActionTable.prototype.onRowClicked = function (event) {
var self = event.data.self; var self = event.data.self;
var $tr = $(event.target).closest('tr'); var $target = $(event.target);
var $tr = $target.closest('tr');
var table = new Selection($tr.closest('table.action')[0], self.icinga); var table = new Selection($tr.closest('table.action')[0], self.icinga);
// allow form actions in table rows to pass through // some rows may contain form actions that trigger a different action, pass those through
if ($(event.target).closest('form').length) { if (!$target.hasClass('rowaction') && $target.closest('form').length &&
($target.closest('a').length || $target.closest('button').length)) {
return; return;
} }
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();