mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
(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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user