/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/autotools/trac/fixes/0.11/jsgnatt/jsgnatt-ds.patch

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -dPNur 0.11/tracjsgantt/htdocs/jsgantt.js 0.11-fixed//tracjsgantt/htdocs/jsgantt.js
2
 
--- 0.11/tracjsgantt/htdocs/jsgantt.js  2011-08-10 21:26:35.000000000 +0200
3
 
+++ 0.11-fixed//tracjsgantt/htdocs/jsgantt.js   2011-09-16 22:00:00.000000000 +0200
4
 
@@ -1097,7 +1097,7 @@
5
 
         
6
 
                   // DRAW the Left-side of the chart (names, resources, comp%)
7
 
          vLeftTable =
8
 
-            '<DIV class=scroll id=leftside style="width:' + vLeftWidth + 'px"><TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>' +
9
 
+            '<DIV class=scroll id=leftside style="width:' + vLeftWidth + 'px;overflow-x: scroll"><TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>' +
10
 
             '<TR style="HEIGHT: 17px">' +
11
 
             '  <TD style="WIDTH: 15px; HEIGHT: 17px"></TD>' +
12
 
            '  <TD style="WIDTH: ' + vNameWidth + 'px; HEIGHT: 17px; border:1;align:left BORDER-TOP: #efefef 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #efefef 1px solid;" colspan = ' + vRadioSpan + '>';
13
 
@@ -1141,13 +1141,13 @@
14
 
          vLeftTable +=
15
 
             '<TR style="HEIGHT: 20px">' +
16
 
             '  <TD style="BORDER-TOP: #efefef 1px solid; WIDTH: 15px; HEIGHT: 20px"></TD>' +
17
 
-            '  <TD style="BORDER-TOP: #efefef 1px solid; WIDTH: ' + vNameWidth + 'px; HEIGHT: 20px"><NOBR></NOBR></TD>' ;
18
 
+            '  <TD style="BORDER-TOP: #efefef 1px solid; HEIGHT: 20px"><NOBR></NOBR></TD>' ;
19
 
 
20
 
-         if(vShowRes ==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>Resource</TD>' ;
21
 
-         if(vShowDur ==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>Duration</TD>' ;
22
 
-         if(vShowComp==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>% Comp.</TD>' ;
23
 
-         if(vShowStartDate==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>Start Date</TD>' ;
24
 
-         if(vShowEndDate==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; WIDTH: 60px; HEIGHT: 20px" align=center nowrap>End Date</TD>' ;
25
 
+         if(vShowRes ==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; HEIGHT: 20px" align=center nowrap>Resource</TD>' ;
26
 
+         if(vShowDur ==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; HEIGHT: 20px" align=center nowrap>Duration</TD>' ;
27
 
+         if(vShowComp==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; HEIGHT: 20px" align=center nowrap>% Comp.</TD>' ;
28
 
+         if(vShowStartDate==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; HEIGHT: 20px" align=center nowrap>Start Date</TD>' ;
29
 
+         if(vShowEndDate==1) vLeftTable += '  <TD style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid; HEIGHT: 20px" align=center nowrap>End Date</TD>' ;
30
 
  
31
 
          vLeftTable += '</TR>';
32
 
 
33
 
@@ -1192,26 +1192,22 @@
34
 
                vLeftTable += 
35
 
                   '<span ' +'class="'+vTaskList[i].getClass()+'" '+
36
 
                   'onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '","'+vPopupFeatures+'"); ' +
37
 
-                  'style="cursor:pointer; display:inline-block;width:'+vNameWidth+'px;overflow:hidden;padding:0px" ' +
38
 
+                  'style="cursor:pointer; display:inline-block;overflow:hidden;padding:0px" ' +
39
 
                   'title="'+vTaskList[i].getName()+'"> ' + vTaskList[i].getName() + 
40
 
                   '</span>' +
41
 
                   '</NOBR></TD>' ;
42
 
 
43
 
-               if(vShowRes ==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getResource() + '</NOBR></TD>' ;
44
 
-               if(vShowDur ==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getDuration(vFormat) + '</NOBR></TD>' ;
45
 
-               if(vShowComp==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getCompStr()  + '</NOBR></TD>' ;
46
 
-               if(vShowStartDate==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + JSGantt.formatDateStr( vTaskList[i].getStart(), vDateDisplayFormat) + '</NOBR></TD>' ;
47
 
-               if(vShowEndDate==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + JSGantt.formatDateStr( vTaskList[i].getEnd(), vDateDisplayFormat) + '</NOBR></TD>' ;
48
 
+               if(vShowRes ==1) vLeftTable += '  <TD class=gname style="HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getResource() + '</NOBR></TD>' ;
49
 
+               if(vShowDur ==1) vLeftTable += '  <TD class=gname style="HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getDuration(vFormat) + '</NOBR></TD>' ;
50
 
+               if(vShowComp==1) vLeftTable += '  <TD class=gname style="HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getCompStr()  + '</NOBR></TD>' ;
51
 
+               if(vShowStartDate==1) vLeftTable += '  <TD class=gname style="HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + JSGantt.formatDateStr( vTaskList[i].getStart(), vDateDisplayFormat) + '</NOBR></TD>' ;
52
 
+               if(vShowEndDate==1) vLeftTable += '  <TD class=gname style="HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + JSGantt.formatDateStr( vTaskList[i].getEnd(), vDateDisplayFormat) + '</NOBR></TD>' ;
53
 
 
54
 
                vLeftTable += '</TR>';
55
 
 
56
 
             }
57
 
 
58
 
             // DRAW the date format selector at bottom left.  Another potential GanttChart parameter to hide/show this selector
59
 
-            vLeftTable += '</TD></TR>' +
60
 
-              '<TR><TD border=1 colspan=5 align=left style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #efefef 1px solid; height:18px">&nbsp;&nbsp;Powered by <a href=http://www.jsgantt.com>jsGantt</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
61
 
-               
62
 
-
63
 
             vLeftTable += '</TD></TR></TBODY></TABLE></div>';
64
 
 
65
 
             vMainTable += vLeftTable;
66
 
diff -dPNur 0.11/tracjsgantt/tracjsgantt.py 0.11-fixed//tracjsgantt/tracjsgantt.py
67
 
--- 0.11/tracjsgantt/tracjsgantt.py     2011-09-15 20:59:28.000000000 +0200
68
 
+++ 0.11-fixed//tracjsgantt/tracjsgantt.py      2011-09-16 20:51:00.000000000 +0200
69
 
@@ -590,8 +590,10 @@
70
 
                 
71
 
                 # If there's no due date, default to today
72
 
                 ts = row[1] or None
73
 
+#SDS
74
 
                 milestoneTicket[self.fields['finish']] = \
75
 
-                    format_date(ts, self.dbDateFormat)
76
 
+                    format_date(ts, self.dbDateFormat.encode('latin-1'))
77
 
+#EDS
78
 
 
79
 
                 # jsGantt ignores start for a milestone but we use it
80
 
                 # for scheduling.