44 lines
880 B
JavaScript
44 lines
880 B
JavaScript
/*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: fac_report.js
|
|
*/
|
|
$(document).ready(function () {
|
|
setTimeout("init_reportx()", 100);
|
|
});
|
|
|
|
function init_reportx()
|
|
{
|
|
$("#graph").change(function() {change_graph(); });
|
|
if ($("#graph").val() != 0)
|
|
$("#graph_type").addClass("required");
|
|
}
|
|
|
|
function change_graph()
|
|
{
|
|
if ($("#graph").val() == 0)
|
|
{
|
|
$("#graph_type").removeClass("required");
|
|
$("#graph_type").val(null);
|
|
}
|
|
else
|
|
$("#graph_type").addClass("required");
|
|
|
|
}
|
|
|
|
function show_report(key)
|
|
{
|
|
var url = "appl/fac/fac_report.asp?usrrap_key=" + key;
|
|
FcltMgr.openDetail(url);
|
|
}
|
|
|
|
function clone_report(key)
|
|
{
|
|
if (confirm(L("lcl_usrrap_clone_confirm")))
|
|
{
|
|
var url = "appl/fac/fac_usrrapx_clone.asp?usrrap_key=" + key;
|
|
FcltMgr.openDetail(url);
|
|
}
|
|
}
|