[Bps-public-commit] rt-extension-jsgantt branch, remove-datedaybeforemonth-option, created. 1.01-2-g16c1098
Todd Wade
todd at bestpractical.com
Wed Dec 10 13:41:41 EST 2014
The branch, remove-datedaybeforemonth-option has been created
at 16c1098da523d7b5b4459e9a784dc774d14411e9 (commit)
- Log -----------------------------------------------------------------
commit 16c1098da523d7b5b4459e9a784dc774d14411e9
Author: Todd Wade <todd at bestpractical.com>
Date: Wed Dec 10 13:39:03 2014 -0500
remove DateDayBeforeMonth option
Remove undocumented config option that was made redundant via the
passthrough-all-jsgantt-options branch. Recommended by cloos at:
https://github.com/bestpractical/rt-extension-jsgantt/commit/fe3deb122d9a6bc358903b3c5f96ab875bdfdadd#comments
diff --git a/html/NoAuth/js/jsgantt.js b/html/NoAuth/js/jsgantt.js
index 40556d8..e6dd90f 100755
--- a/html/NoAuth/js/jsgantt.js
+++ b/html/NoAuth/js/jsgantt.js
@@ -573,11 +573,7 @@ JSGantt.GanttChart = function(pGanttVar, pDiv, pFormat)
* @type String
* @default "mm/dd/yy"
* @private
-% if ( RT->Config->Get('DateDayBeforeMonth') ) {
-*/var vDateDisplayFormat = "dd/mm/yy";
-% } else {
*/var vDateDisplayFormat = "mm/dd/yy";
-% }
var vNumUnits = 0;
var vCaptionType;
@@ -1247,24 +1243,24 @@ Complete-Displays task percent complete</p>
if(vNxtDate <= vMaxDate) {
-% if ( RT->Config->Get('DateDayBeforeMonth') ) {
+ if ( vDateDisplayFormat.substring(0,2) == 'dd' ) {
vDateRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 19px; BORDER-LEFT: #efefef 1px solid;" bgcolor=#' + vWeekdayColor + ' align=center width:'+vColWidth+'px><div style="width: '+vColWidth+'px">' + vTmpDate.getDate() + '/' + (vTmpDate.getMonth()+1) + '</div></td>';
-% } else {
+ } else {
vDateRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 19px; BORDER-LEFT: #efefef 1px solid;" bgcolor=#' + vWeekdayColor + ' align=center width:'+vColWidth+'px><div style="width: '+vColWidth+'px">' + (vTmpDate.getMonth()+1) + '/' + vTmpDate.getDate() + '</div></td>';
-% }
+ }
if( vCurrDate >= vTmpDate && vCurrDate < vNxtDate )
vItemRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 20px; BORDER-LEFT: #efefef 1px solid;" bgcolor=#' + vWeekdayColor + ' align=center><div style="width: '+vColWidth+'px">  </div></td>';
else
vItemRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 20px; BORDER-LEFT: #efefef 1px solid;" align=center><div style="width: '+vColWidth+'px">  </div></td>';
} else {
-% if ( RT->Config->Get('DateDayBeforeMonth') ) {
+ if ( vDateDisplayFormat.substring(0,2) == 'dd' ) {
vDateRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 19px; BORDER-LEFT: #efefef 1px solid; bgcolor=#' + vWeekdayColor + ' BORDER-RIGHT: #efefef 1px solid;" align=center width:'+vColWidth+'px><div style="width: '+vColWidth+'px">' + vTmpDate.getDate() + '/' + (vTmpDate.getMonth()+1) + '</div></td>';
-% } else {
+ } else {
vDateRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 19px; BORDER-LEFT: #efefef 1px solid; bgcolor=#' + vWeekdayColor + ' BORDER-RIGHT: #efefef 1px solid;" align=center width:'+vColWidth+'px><div style="width: '+vColWidth+'px">' + (vTmpDate.getMonth()+1) + '/' + vTmpDate.getDate() + '</div></td>';
-% }
+ }
if( vCurrDate >= vTmpDate && vCurrDate < vNxtDate )
vItemRowStr += '<td class="ghead" style="BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; HEIGHT: 20px; BORDER-LEFT: #efefef 1px solid; BORDER-RIGHT: #efefef 1px solid;" bgcolor=#' + vWeekdayColor + ' align=center><div style="width: '+vColWidth+'px">  </div></td>';
else
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list