This repository was archived by the owner on Jun 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ window.GC = window.GC || {};
24
24
// been stored on the server too)
25
25
// =========================================================================
26
26
var readOnlySettings = {
27
- fileRevision : 208 ,
27
+ fileRevision : 210 ,
28
28
29
29
// See the toString method for the rendering template
30
30
version : {
@@ -112,6 +112,8 @@ window.GC = window.GC || {};
112
112
limit : 2
113
113
} ,
114
114
115
+ sameDayDot : true ,
116
+
115
117
// At what point chronologically does one start forecasting adult height?
116
118
heightEstimatesMinAge : 12 , // months
117
119
Original file line number Diff line number Diff line change 252
252
253
253
254
254
$ . each ( model , function ( index , data ) {
255
+ var useSameDayDot = GC . Preferences . _data . sameDayDot ;
256
+
255
257
//debugger;
256
258
var age = new GC . TimeInterval ( patient . DOB ) . setMonths ( data . agemos ) ,
257
- date = new XDate ( patient . DOB . getTime ( ) ) . addMonths ( data . agemos ) ,
258
- dateText = date . toString ( GC . chartSettings . dateFormat ) ; //,
259
+ date = new XDate ( patient . DOB . getTime ( ) ) . addMonths ( data . agemos ) ; //,
259
260
// years,
260
261
// months,
261
262
// days;
262
263
264
+ var sameDay = lastDate && lastDate . diffDays ( date ) < 1 ;
265
+ var dateText = ( useSameDayDot && sameDay ) ?
266
+ '<div style="text-align: center;font-size:20px">•</div>' :
267
+ date . toString ( GC . chartSettings . dateFormat ) ;
268
+
263
269
// Header - Date
264
270
$ ( '<th/>' ) . append (
265
271
$ ( '<div class="date"/>' ) . html ( dateText )
266
272
) . appendTo ( thr1 ) ;
267
273
268
274
// Header - Age
269
275
$ ( '<th/>' ) . append (
270
- $ ( '<div class=""/>' ) . html ( age . toString ( shortDateFormat ) )
276
+ $ ( '<div class=""/>' ) . html (
277
+ ( useSameDayDot && sameDay ) ?
278
+ date . toString ( GC . chartSettings . timeFormat ) :
279
+ age . toString ( shortDateFormat )
280
+ )
271
281
) . appendTo ( thr2 ) ;
272
282
273
283
$ . each ( scheme . header . rows , function ( j , o ) {
You can’t perform that action at this time.
0 commit comments