Skip to content
Snippets Groups Projects
Commit 00743ae8 authored by ayeaye's avatar ayeaye
Browse files

Collapse various milestone things on row-clicks

parent 9ae75e4f
No related merge requests found
...@@ -27,3 +27,23 @@ g.setShowEndDate(0); ...@@ -27,3 +27,23 @@ g.setShowEndDate(0);
g.setShowDur(0); g.setShowDur(0);
g.setColumnOrder([ 'vShowComp','vShowRes','vShowDur','vShowStartDate','vShowEndDate','vShowPlanStartDate','vShowPlanEndDate','vShowCost','vAdditionalHeaders','vShowAddEntries'] ) g.setColumnOrder([ 'vShowComp','vShowRes','vShowDur','vShowStartDate','vShowEndDate','vShowPlanStartDate','vShowPlanEndDate','vShowCost','vAdditionalHeaders','vShowAddEntries'] )
g.setUseSort(0); g.setUseSort(0);
function getGitMs() {
return g.GetTaskItems("mstype", 1)
}
function clickRow(e) {
var mst = e.getDataObject()["mstype"];
if (mst == 2) {
for (m of getGitMs()) {
m.setVisible(1-m.getVisible())
}
g.Draw()
} else if (mst == 1) {
for (m of getGitMs()) {
JSGantt.folder(m.getID(), g, m.getID() == e.getID() ? 1 : -1);
}
}
}
g.setEventClickRow(clickRow)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment