$out .= sprintf ("<tr class=\"t%d\">", $color);
$out .= sprintf ("<td width=\"10%%\" align=\"right\">%s</td>", $date);
$out .= sprintf ("<td width=\"10%%\" align=\"center\">%s</td>", $row['category']);
- $out .= sprintf ("<td width=\"70%%\"><a href=\"edit.php?id=%d%s\" target=\"_new\">%s</a></td>",
- $row['id'], $add, $descr[0]);
+ if (strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/') === false)
+ $out .= sprintf ("<td width=\"70%%\"><a href=\"edit.php?id=%d%s\" target=\"_new\">%s</a></td>",
+ $row['id'], $add, $descr[0]);
+ else
+ $out .= sprintf ("<td width=\"70%%\"><span route=\"Accounting/EditDescr\" item_id=\"%d\" text=\"%s\">%s</span></td>",
+ $row['id'], $add, $descr[0]);
$out .= sprintf ("<td width=\"10%%\" align=\"right\" class=\"%s\">%5.2f</td>",
$row[$value]>0?"in":"out", $row[$value]);
$sum += $row[$value];
});
$('body').append('<script type="text/javascript" src="../../jquery.udraggable.js"><\/script>');
$('body').append('<script type="text/javascript" src="../../jquery.event.ue.js"><\/script>');
+ $('body').append('<script type="text/javascript" src="../../jquery.editable.js"><\/script>');
});
//+ Jonas Raoni Soares Silva
'ajax=1&'+$('#filter_popup form').serialize(),
function(data){
$('table.border tbody').html(UTF8.decode(data));
+ make_editable('table.smallfont tr span');
});
return false;
});
function(data){
$('table.border tbody').html(UTF8.decode(data));
$('#filter_popup').hide();
+ make_editable('table.smallfont tr span');
});
return false;
});