Index: lams_admin/web/logevent.jsp =================================================================== diff -u -rfcc5eca8a605afdc9e927366827553a7862000cd -r045ebfd1d11d9ed0a1f81a00abb1a2ea373e8d93 --- lams_admin/web/logevent.jsp (.../logevent.jsp) (revision fcc5eca8a605afdc9e927366827553a7862000cd) +++ lams_admin/web/logevent.jsp (.../logevent.jsp) (revision 045ebfd1d11d9ed0a1f81a00abb1a2ea373e8d93) @@ -20,6 +20,8 @@ const LESSON_LABEL = ''; + + const ACTIVITY_LABEL = ''; var areaMenu, typeMenu, @@ -40,10 +42,11 @@ } typeMenu = document.getElementById("typeMenu"); - $("#endDatePicker").datetimepicker(); + $("#endDatePicker").datepicker(); var now = new Date(); $("#endDatePicker").datepicker( "setDate", now ); - $("#startDatePicker").datetimepicker(); + $("#startDatePicker").datepicker(); + debugger; var startDateParts = "${startDate}".split("-"); // YYYY-MM-DD if ( startDateParts.length == 3 ) { var startDate = new Date(startDateParts[0], startDateParts[1]-1, startDateParts[2]); @@ -58,7 +61,7 @@ sortInitialOrder: 'desc', sortList: [[0]], widgets: [ "uitheme", "resizable", "filter" ], - headers: { 0: { filter: false}, 1: { filter: false, sorter: false}, 2: { filter: false, sorter: false}, 3: { filter: false, sort: false} }, + headers: { 0: { filter: false}, 1: { filter: false, sorter: false}, 2: { filter: false, sorter: false}, 3: { filter: false, sorter: false}, 4: { filter: false, sorter: false}, }, sortList : [[0,1]], widgetOptions: { resizable: true, @@ -118,16 +121,42 @@ rows += ''; rows += ''; - if ( logData['lesson'] && logData['description'] ) { - debugger; - rows += LESSON_LABEL.replace('{0}',logData['lesson'])+'
'+logData['description']; - } else if ( logData['lesson'] ) { - rows += logData['lesson']; - } else if ( logData['description'] ) { - rows += logData['description']; + if ( logData['targetUserId'] ) { + rows += definePortraitPopover(logData['targetUserPortraitId'], logData['targetUserId'], logData['targetUserName'], logData['targetUserName']); + } else { + rows += '-'; } rows += ''; + rows += ''; + var lesson = null, activity = null, description = null, lineCount = 0; + if ( logData['lessonId'] ) { + lesson = LESSON_LABEL.replace('{0}',logData['lessonName']).replace('{1}',logData['lessonId']); + lineCount++; + } + if ( logData['activityId'] ) { + activity = ACTIVITY_LABEL.replace('{0}',logData['activityName']).replace('{1}',logData['activityId']); + lineCount++; + } + if ( logData['description'] ) { + description = logData['description']; + lineCount++; + } + if ( lesson != null ) { + rows+=lesson; + if ( lineCount > 1 ) + rows+='
'; + } + if ( activity != null ) { + rows+=activity; + if ( lineCount > 1 ) + rows+='
'; + } + if ( description != null ) { + rows+=description; + } + rows += ''; + rows += ''; } @@ -209,6 +238,8 @@

+

${startDate}

+
  @@ -219,10 +250,11 @@
- + - + +