Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-ganttproject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-ganttproject
Commits
46454c6a
Commit
46454c6a
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implemented CSP (Content Security Policy)
parent
f1f8ab97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
6 deletions
+43
-6
ms-project-warning-component.adp
lib/ms-project-warning-component.adp
+24
-0
ms-project-warning-component.tcl
lib/ms-project-warning-component.tcl
+4
-4
intranet-ganttproject-procs.tcl
tcl/intranet-ganttproject-procs.tcl
+15
-2
No files found.
lib/ms-project-warning-component.adp
View file @
46454c6a
<script type="text/javascript" <if @::__csp_nonce@ not nil>nonce="@::__csp_nonce;literal@"</if>>
window.addEventListener('load', function() {
var el1 = document.getElementById('list_check_all1');
var el2 = document.getElementById('list_check_all2');
var el3 = document.getElementById('list_check_all3');
var el4 = document.getElementById('list_check_all4');
if (!!el1) el1.addEventListener('click', function() { acs_ListCheckAll('task_without_start_constraint', this.checked) });
if (!!el2) el2.addEventListener('click', function() { acs_ListCheckAll('task_with_empty_start_end_date', this.checked) });
if (!!el3) el3.addEventListener('click', function() { acs_ListCheckAll('task_without_start_constraint', this.checked) });
if (!!el4) el4.addEventListener('click', function() { acs_ListCheckAll('task_without_start_constraint', this.checked) });
});
/*
document.getElementById('list_check_all1').addEventListener('click', function() { acs_ListCheckAll('task_with_empty_start_end_date', this.checked) });
document.getElementById('list_check_all2').addEventListener('click', function() { acs_ListCheckAll('task_without_start_constraint', this.checked) });
document.getElementById('list_check_all3').addEventListener('click', function() { acs_ListCheckAll('task_with_overallocation', this.checked) });
document.getElementById('list_check_all4').addEventListener('click', function() { acs_ListCheckAll('task_with_overallocation', this.checked) });
*/
</script>
@warnings_html;noquote@
lib/ms-project-warning-component.tcl
View file @
46454c6a
...
...
@@ -166,7 +166,7 @@ if {![info exists ignore_hash($warning_key)]} {
if
{
$task
_html ne
""
}
{
set task_header
"<tr class=rowtitle>
\n
"
append task_header
"<td class=rowtitle><input
type=checkbox name=_dummy onclick=acs_ListCheckAll('task_with_empty_start_end_date',this.checked)
checked></td>
\n
"
append task_header
"<td class=rowtitle><input
id=list_check_all1 type=checkbox name=_dummy
checked></td>
\n
"
append task_header
"<td class=rowtitle>
[
lang::message::lookup
""
intranet-ganttproject.Task
"Task"
]
</td>
\n
"
append task_header
"</tr>
\n
"
...
...
@@ -378,7 +378,7 @@ if {![info exists ignore_hash($warning_key)]} {
if
{
$task
_html ne
""
}
{
set task_header
"<tr class=rowtitle>
\n
"
append task_header
"<td class=rowtitle><input
type=checkbox name=_dummy onclick=acs_ListCheckAll('task_without_start_constraint',this.checked)
checked></td>
\n
"
append task_header
"<td class=rowtitle><input
id=list_check_all1 type=checkbox name=_dummy
checked></td>
\n
"
append task_header
"<td class=rowtitle>
[
lang::message::lookup
""
intranet-ganttproject.Task
"Task"
]
</td>
\n
"
append task_header
"</tr>
\n
"
...
...
@@ -545,7 +545,7 @@ if {0 && ![info exists ignore_hash($warning_key)]} {
if
{
$task
_html ne
""
}
{
set task_header
"<tr class=rowtitle>
\n
"
append task_header
"<td class=rowtitle align=center><input
type=checkbox name=_dummy onclick=acs_ListCheckAll('task_with_overallocation',this.checked)
checked></td>
\n
"
append task_header
"<td class=rowtitle align=center><input
id=list_check_all3 type=checkbox name=_dummy
checked></td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.Task
"Task"
]
</td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.Start
"Start Date/Time"
]
</td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.End
"End Date/Time"
]
</td>
\n
"
...
...
@@ -748,7 +748,7 @@ if {![info exists ignore_hash($warning_key)]} {
if
{
$task
_html ne
""
}
{
set task_header
"<tr class=rowtitle>
\n
"
append task_header
"<td class=rowtitle align=center><input type=checkbox
name=_dummy onclick=acs_ListCheckAll('task_with_overallocation',this.checked)
checked></td>
\n
"
append task_header
"<td class=rowtitle align=center><input type=checkbox
id=list_check_all4 name=_dummy
checked></td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.Task
"Task Name"
]
</td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.Start
"Start"
]
</td>
\n
"
append task_header
"<td class=rowtitle align=center>
[
lang::message::lookup
""
intranet-ganttproject.End
"End"
]
</td>
\n
"
...
...
tcl/intranet-ganttproject-procs.tcl
View file @
46454c6a
...
...
@@ -575,11 +575,24 @@ ad_proc -public im_gp_save_xml {
"
ad_script_abort
}
set root_node
[
$doc
documentElement
]
set format
"gantt"
set root_name
[
$root
_node nodeName
]
if
{
"Project"
ne
$root
_name
}
{
ad_return_complaint 1
"
<b>
[
lang::message::lookup
""
intranet-ganttproject.Invalid_XML_Tag
"Invalid XML Format / Main Tag"
]
</b>:<br> <br>
[
lang::message::lookup
""
intranet-ganttproject.Invalid_XML_Tag_Error
"
Your XML file starts with the tag '%root_name%'.<br>
However, Microsoft Project produces files with the first tag 'Project'.<br>
So your file has probably been created by a different application.<br>
This format is currently not supported by ]project-open[.<br>
<br>
"
]
"
ad_script_abort
}
set format
"gantt"
if
{[
string
equal
[
$root
_node nodeName
]
"Project"
]
&&
[
string
equal
[
$root
_node getAttribute
"xmlns"
""
]
\
"http://schemas.microsoft.com/project"
]}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment