Add user_portal_load_notification_by_ajax validation

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 8ffb7fe912
commit 8a97b51b4a
  1. 6
      user_portal.php

@ -39,7 +39,9 @@ $load_dirs = api_get_setting('show_documents_preview');
$displayMyCourseViewBySessionLink = api_get_setting('my_courses_view_by_session') === 'true';
$nameTools = get_lang('MyCourses');
// Load notification by ajax
// Load course notification by ajax
$loadNotificationsByAjax = api_get_configuration_value('user_portal_load_notification_by_ajax');
if ($loadNotificationsByAjax) {
$htmlHeadXtra[] = '<script>
$(function() {
$(".course_notification").each(function(index) {
@ -58,8 +60,8 @@ $(function() {
});
});
});
</script>';
}
/*
Header

Loading…
Cancel
Save