File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 114
114
</script> ' ;
115
115
116
116
$ htmlHeadXtra [] = '<script>
117
+ $(function() {
118
+ if ($("#div_result").html() !== undefined && $("#div_result").html().length == 0) {
119
+ $("#div_result").html("0");
120
+ }
121
+ })
117
122
function datetime_by_attendance(attendance_id, thematic_advance_id) {
118
123
$.ajax({
119
124
contentType: "application/x-www-form-urlencoded",
@@ -248,13 +253,13 @@ function check_per_custom_date(obj) {
248
253
$(function () {
249
254
$('.btn-delete').on('click', function (e) {
250
255
e.preventDefault();
251
-
256
+
252
257
var id = $(this).data('id') || 0;
253
-
258
+
254
259
if (!id) {
255
260
return;
256
261
}
257
-
262
+
258
263
//$('[name= \"title[' + id + '] \"]').val('');
259
264
CKEDITOR.instances['description[' + id + ']'].setData('');
260
265
});
Original file line number Diff line number Diff line change 210
210
$ thematic_advance = get_lang ('CourseThematicAdvance ' );
211
211
$ thematicScore = $ thematic ->get_total_average_of_thematic_advances ().'% ' ;
212
212
$ thematicUrl = api_get_path (WEB_CODE_PATH ).'course_progress/index.php?action=thematic_details& ' .api_get_cidreq ();
213
+
214
+ $ thematic_advance_info ['thematic_id ' ] = isset ($ thematic_advance_info ['thematic_id ' ]) ? $ thematic_advance_info ['thematic_id ' ] : 0 ;
215
+ $ thematic_advance_info ['start_date ' ] = isset ($ thematic_advance_info ['start_date ' ]) ? $ thematic_advance_info ['start_date ' ] : null ;
216
+ $ thematic_advance_info ['content ' ] = isset ($ thematic_advance_info ['content ' ]) ? $ thematic_advance_info ['content ' ] : '' ;
217
+ $ thematic_advance_info ['duration ' ] = isset ($ thematic_advance_info ['duration ' ]) ? $ thematic_advance_info ['duration ' ] : 0 ;
218
+
213
219
$ thematic_info = $ thematic ->get_thematic_list ($ thematic_advance_info ['thematic_id ' ]);
220
+ $ thematic_info ['title ' ] = isset ($ thematic_info ['title ' ]) ? $ thematic_info ['title ' ] : '' ;
214
221
222
+ /*
215
223
$thematic_advance_info['start_date'] = api_get_local_time(
216
224
$thematic_advance_info['start_date']
217
225
);
226
+ */
218
227
$ thematic_advance_info ['start_date ' ] = api_format_date (
219
228
$ thematic_advance_info ['start_date ' ],
220
229
DATE_TIME_FORMAT_LONG
You can’t perform that action at this time.
0 commit comments