@@ -270,6 +270,18 @@ exports.GanttChart = function (pDiv, pFormat) {
270
270
for ( var i = 0 ; i < this . vTaskList . length ; i ++ ) {
271
271
_loop_1 ( i ) ;
272
272
}
273
+ // Render no daa in the chart
274
+ if ( this . vTaskList . length == 0 ) {
275
+ var totalColumns = this . getColumnOrder ( )
276
+ . filter ( function ( column ) { return _this [ column ] == 1 || column === 'vAdditionalHeaders' ; } )
277
+ . length ;
278
+ var vTmpRow_2 = draw_utils_1 . newNode ( vTmpContentTBody , 'tr' , this . vDivId + 'child_' , 'gname ' ) ;
279
+ // this.vTaskList[i].setListChildRow(vTmpRow);
280
+ var vTmpCell_2 = draw_utils_1 . newNode ( vTmpRow_2 , 'td' , null , 'gtasknolist' , '' , null , null , null , totalColumns ) ;
281
+ var vOutput = document . createDocumentFragment ( ) ;
282
+ draw_utils_1 . newNode ( vOutput , 'div' , null , 'gtasknolist-label' , this . vLangs [ this . vLang ] [ 'nodata' ] + '.' ) ;
283
+ vTmpCell_2 . appendChild ( vOutput ) ;
284
+ }
273
285
// DRAW the date format selector at bottom left.
274
286
var vTmpRow = draw_utils_1 . newNode ( vTmpContentTBody , 'tr' ) ;
275
287
draw_utils_1 . newNode ( vTmpRow , 'td' , null , 'gtasklist' , '\u00A0' ) ;
@@ -690,10 +702,6 @@ exports.GanttChart = function (pDiv, pFormat) {
690
702
bd = new Date ( ) ;
691
703
console . info ( 'before draw' , bd ) ;
692
704
}
693
- if ( this . vTaskList . length === 0 ) {
694
- this . drawComplete ( vMinDate , vColWidth , bd ) ;
695
- return ;
696
- }
697
705
// Process all tasks, reset parent date and completion % if task list has altered
698
706
if ( this . vProcessNeeded )
699
707
task_1 . processRows ( this . vTaskList , 0 , - 1 , 1 , 1 , this . getUseSort ( ) , this . vDebug ) ;
@@ -1805,6 +1813,7 @@ var es = {
1805
1813
'enddate' : 'Fin' ,
1806
1814
'planenddate' : 'Fin Planificado' ,
1807
1815
'moreinfo' : 'Más Información' ,
1816
+ 'nodata' : 'No tasks found' ,
1808
1817
'notes' : 'Notas' ,
1809
1818
'format' : 'Formato' ,
1810
1819
'hour' : 'Hora' ,
@@ -1862,6 +1871,7 @@ var en = {
1862
1871
'planenddate' : 'Plan End Date' ,
1863
1872
'cost' : 'Cost' ,
1864
1873
'moreinfo' : 'More Information' ,
1874
+ 'nodata' : 'No tasks found' ,
1865
1875
'notes' : 'Notes' ,
1866
1876
'january' : 'January' ,
1867
1877
'february' : 'February' ,
@@ -1936,6 +1946,7 @@ var de = {
1936
1946
'planenddate' : 'Plan Letzte Buchung' ,
1937
1947
'cost' : 'Cost' ,
1938
1948
'moreinfo' : 'Weitere Infos' ,
1949
+ 'nodata' : 'No tasks found' ,
1939
1950
'notes' : 'Anmerkung' ,
1940
1951
'january' : 'Jänner' ,
1941
1952
'february' : 'Februar' ,
@@ -1997,6 +2008,7 @@ var pt = {
1997
2008
'completion' : 'Terminado' ,
1998
2009
'comp' : '% Completado' ,
1999
2010
'moreinfo' : 'Mais informações' ,
2011
+ 'nodata' : 'Sem atividades' ,
2000
2012
'notes' : 'Notas' ,
2001
2013
'res' : 'Responsável' ,
2002
2014
'dur' : 'Duração' ,
@@ -2086,6 +2098,7 @@ var ru = {
2086
2098
'planenddate' : 'Plan Кон. дата' ,
2087
2099
'cost' : 'Cost' ,
2088
2100
'moreinfo' : 'Детали' ,
2101
+ 'nodata' : 'No tasks found' ,
2089
2102
'notes' : 'Заметки' ,
2090
2103
'format' : 'Формат' ,
2091
2104
'hour' : 'Час' ,
@@ -2111,9 +2124,11 @@ var ru = {
2111
2124
'tooltipLoading' : 'Загрузка...'
2112
2125
} ;
2113
2126
exports . ru = ru ;
2127
+ /**
2128
+ * Mois : http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?id=3619
2129
+ Jours : http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?id=3617
2130
+ */
2114
2131
var fr = {
2115
- // Mois : http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?id=3619
2116
- // Jours : http://bdl.oqlf.gouv.qc.ca/bdl/gabarit_bdl.asp?id=3617
2117
2132
'january' : 'Janvier' ,
2118
2133
'february' : 'Février' ,
2119
2134
'march' : 'Mars' ,
@@ -2162,6 +2177,7 @@ var fr = {
2162
2177
'planenddate' : 'Plan Fin' ,
2163
2178
'cost' : 'Cost' ,
2164
2179
'moreinfo' : "Plus d'informations" ,
2180
+ 'nodata' : 'No tasks found' ,
2165
2181
'notes' : 'Notes' ,
2166
2182
'format' : 'Format' ,
2167
2183
'hour' : 'Heure' ,
@@ -2235,6 +2251,7 @@ var cn = {
2235
2251
'planenddate' : '計劃截止日期' ,
2236
2252
'cost' : '成本' ,
2237
2253
'moreinfo' : "更多資訊" ,
2254
+ 'nodata' : 'No tasks found' ,
2238
2255
'notes' : '備註' ,
2239
2256
'format' : '格式' ,
2240
2257
'hour' : '時' ,
@@ -2291,6 +2308,7 @@ var sv = {
2291
2308
'planenddate' : 'Planerad slutdatum' ,
2292
2309
'cost' : 'Kostnad' ,
2293
2310
'moreinfo' : 'Mer Information' ,
2311
+ 'nodata' : 'No tasks found' ,
2294
2312
'notes' : 'Notes' ,
2295
2313
'january' : 'januari' ,
2296
2314
'february' : 'februari' ,
@@ -2364,6 +2382,7 @@ var nl = {
2364
2382
'planenddate' : 'Geplande einddatum' ,
2365
2383
'cost' : 'Kosten' ,
2366
2384
'moreinfo' : 'Meer informatie' ,
2385
+ 'nodata' : 'No tasks found' ,
2367
2386
'notes' : 'Notities' ,
2368
2387
'january' : 'januari' ,
2369
2388
'february' : 'februari' ,
@@ -2437,6 +2456,7 @@ var id = {
2437
2456
'planenddate' : 'Perencanaan Tanggal Akhir' ,
2438
2457
'cost' : 'Biaya' ,
2439
2458
'moreinfo' : 'Informasi Lebih Lanjut' ,
2459
+ 'nodata' : 'No tasks found' ,
2440
2460
'notes' : 'Catatan' ,
2441
2461
'january' : 'Januari' ,
2442
2462
'february' : 'Februari' ,
@@ -2510,6 +2530,7 @@ var tr = {
2510
2530
'planenddate' : 'Plan Bitiş Tarihi' ,
2511
2531
'cost' : 'Tutar' ,
2512
2532
'moreinfo' : 'Daha Fazla Bilgi' ,
2533
+ 'nodata' : 'No tasks found' ,
2513
2534
'notes' : 'Notlar' ,
2514
2535
'january' : 'Ocak' ,
2515
2536
'february' : 'Şubat' ,
@@ -2583,6 +2604,7 @@ var ja = {
2583
2604
'planenddate' : '予定期日' ,
2584
2605
'cost' : 'コスト' ,
2585
2606
'moreinfo' : '詳細' ,
2607
+ 'nodata' : 'No tasks found' ,
2586
2608
'notes' : 'ノート' ,
2587
2609
'january' : '1月' ,
2588
2610
'february' : '2月' ,
@@ -2657,6 +2679,7 @@ var cs = {
2657
2679
'planenddate' : 'Plánovaný konec' ,
2658
2680
'cost' : 'Náklady' ,
2659
2681
'moreinfo' : 'Více informací' ,
2682
+ 'nodata' : 'No tasks found' ,
2660
2683
'notes' : 'Poznámky' ,
2661
2684
'january' : 'Leden' ,
2662
2685
'february' : 'Únor' ,
@@ -2731,6 +2754,7 @@ var hu = {
2731
2754
'planenddate' : 'Tervezett befejezés' ,
2732
2755
'cost' : 'Költség' ,
2733
2756
'moreinfo' : 'További információ' ,
2757
+ 'nodata' : 'No tasks found' ,
2734
2758
'notes' : 'Jegyzetek' ,
2735
2759
'january' : 'Január' ,
2736
2760
'february' : 'Február' ,
@@ -2805,6 +2829,7 @@ var ko = {
2805
2829
'planenddate' : '계획 종료일자' ,
2806
2830
'cost' : '비용' ,
2807
2831
'moreinfo' : '더 많은 정보' ,
2832
+ 'nodata' : 'No tasks found' ,
2808
2833
'notes' : '비고' ,
2809
2834
'january' : '1월' ,
2810
2835
'february' : '2월' ,
0 commit comments