Skip to content

Commit

Permalink
Release v3.1.65-20241102162049
Browse files Browse the repository at this point in the history
  • Loading branch information
esitarski committed Nov 2, 2024
2 parents 6fae3ed + 8027ffe commit 32d43f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
14 changes: 11 additions & 3 deletions CrossMgrHtml/RaceAnimation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2190,17 +2190,25 @@
// ---------------------------------------------------------------------

function createChild( parent, tag ) {
var child = document.createElement(tag);
let child = document.createElement(tag);
parent.appendChild( child );
return child;
}

function createTextChild( parent, s ) {
var child = document.createTextNode(s);
let child = document.createTextNode(s);
parent.appendChild( child );
return child;
}

function createMultilineTextChild( parent, s ) {
const lines = s.split('\n');
for( const line of lines ) {
parent.appendChild( document.createTextNode(line) );
parent.appendChild( document.createElement('BR') );
}
}

// ---------------------------------------------------------------------

var statusSortSeq = { 'Finisher':1, 'PUL':2, 'OTL':6, 'DNF':3, 'DQ':4, 'DNS':5, 'NP':7 };
Expand Down Expand Up @@ -2839,7 +2847,7 @@
createTextChild( td = createChild(tr, 'TD'), '');
td.colSpan = 2;

createTextChild( td = createChild(tr, 'TD'), info.resultNote );
createMultilineTextChild( td = createChild(tr, 'TD'), info.resultNote );
td.id = 'idNonNumeric';
td.colSpan = colTotal - 2;
}
Expand Down
2 changes: 2 additions & 0 deletions Properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,8 @@ def SetNewFilename( parent, properties ):
newFName = os.path.join( dir, newBaseName )

mainWin.fileName = newFName
wx.CallAfter( mainWin.updateRecentFiles ) # Add to the recent files list.
wx.CallAfter( mainWin.updateRaceClock ) # Also updates the window title.
return success

def ChangeProperties( parent ):
Expand Down
6 changes: 3 additions & 3 deletions RiderDetail.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ def __init__( self, parent, id = wx.ID_ANY ):

self.resultNoteName = wx.StaticText( self, label = '{} '.format(_('Result Note')) )
gbs.Add( self.resultNoteName, pos=(row,0), span=(1,1), flag=labelAlign )
self.resultNote = wx.TextCtrl( self, value='' )
gbs.Add( self.resultNote, pos=(row,1), span=(1,4), flag=wx.EXPAND )
row += 1
self.resultNote = wx.TextCtrl( self, value='', style=wx.TE_MULTILINE|wx.TE_DONTWRAP )
gbs.Add( self.resultNote, pos=(row,1), span=(2,4), flag=wx.EXPAND )
row += 2

self.autocorrectLaps = wx.CheckBox( self, label = _('Autocorrect Lap Data') )
self.Bind( wx.EVT_CHECKBOX, self.onAutocorrectLaps, self.autocorrectLaps )
Expand Down

0 comments on commit 32d43f2

Please sign in to comment.