(Modified) Usability Enhancement: Click on list rows to Edit items. Now uses jQuery (instead of onclick) to avoid being redirected to Edit when canceling a Delete.

This commit is contained in:
Nate Jones
2014-06-21 08:52:47 +00:00
parent 8e7b388b44
commit ec1ba51eb9
22 changed files with 51 additions and 33 deletions

View File

@@ -774,7 +774,6 @@ legend {
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery-1.8.3.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo PROJECT_PATH; ?>/resources/jquery/jquery.autosize.input.js"></script>
<script language="JavaScript" type="text/javascript">
function display_message() {
$(document).ready(function() {
@@ -801,6 +800,16 @@ legend {
});
// linkify rows (except the last - the list_control_icons cell)
// on a table with a class of 'tr_hover', according to the href
// attribute of the <tr> tag
$('.tr_hover tr').each(function(i,e) {
$(e).children('td:not(:last)').click(function() {
var href = $(this).closest("tr").attr("href");
if (href) { window.location = href; }
});
});
});
function hide_domains() {