diff --git a/content/planner.overlay.js.php b/content/planner.overlay.js.php index 5b3ae72a7..67775bfcf 100755 --- a/content/planner.overlay.js.php +++ b/content/planner.overlay.js.php @@ -179,6 +179,8 @@ function treeProjektmenueSelect() { debug("whoops Documents load failed with exception: "+e); } + // Gantt Chart laden + drawGantt(); } else { diff --git a/content/planner.overlay.xul.php b/content/planner.overlay.xul.php index 911ce5416..9a17fec39 100755 --- a/content/planner.overlay.xul.php +++ b/content/planner.overlay.xul.php @@ -110,9 +110,7 @@ echo ' - + @@ -122,9 +120,7 @@ echo ' - + diff --git a/content/projekt/gantt.overlay.js.php b/content/projekt/gantt.overlay.js.php index 5b8877e14..7dfaabcd6 100755 --- a/content/projekt/gantt.overlay.js.php +++ b/content/projekt/gantt.overlay.js.php @@ -23,6 +23,7 @@ require_once('../../config/vilesci.config.inc.php'); ?> var global_year; +var global_url; function getProperties() { @@ -59,7 +60,8 @@ function showStudienjahr() } projekt_kurzbz=getTreeCellText(tree, "treecol-projektmenue-projekt_kurzbz", tree.currentIndex); - var url = 'projekt/gantt.svg.php?projekt='+projekt_kurzbz+'&studienjahr='+(global_year-1)+'&ansicht=studienjahr' + var url = 'projekt/gantt.svg.php?projekt='+projekt_kurzbz+'&studienjahr='+(global_year-1)+'&ansicht=studienjahr'; + global_url = url; document.getElementById('iframe-ressource-projekt').contentWindow.location.href=url; } @@ -83,7 +85,8 @@ function showKalenderjahr() } projekt_kurzbz=getTreeCellText(tree, "treecol-projektmenue-projekt_kurzbz", tree.currentIndex); - var url = 'projekt/gantt.svg.php?projekt='+projekt_kurzbz+'&studienjahr='+global_year+'&ansicht=kalenderjahr' + var url = 'projekt/gantt.svg.php?projekt='+projekt_kurzbz+'&studienjahr='+global_year+'&ansicht=kalenderjahr'; + global_url = url; document.getElementById('iframe-ressource-projekt').contentWindow.location.href=url; } @@ -156,10 +159,12 @@ function showYearPlus() } function printGantt() -{ - alert(document.getElementById('iframe-ressource-projekt').src); - foo = window.open(url); - foo.print(); +{ + foo = window.open(global_url); + foo.onload = function () + { + foo.print(); + } } diff --git a/content/projekt/gantt.overlay.xul.php b/content/projekt/gantt.overlay.xul.php index 8e6da1364..2b0de4f12 100755 --- a/content/projekt/gantt.overlay.xul.php +++ b/content/projekt/gantt.overlay.xul.php @@ -27,73 +27,31 @@ header("Content-type: application/vnd.mozilla.xul+xml"); require_once('../../config/vilesci.config.inc.php'); echo ''; -echo ''; +/*echo '';*/ ?> + + +