Add user_portal_load_notification_by_ajax validation

pull/2487/head
jmontoyaa 9 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'; $displayMyCourseViewBySessionLink = api_get_setting('my_courses_view_by_session') === 'true';
$nameTools = get_lang('MyCourses'); $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> $htmlHeadXtra[] = '<script>
$(function() { $(function() {
$(".course_notification").each(function(index) { $(".course_notification").each(function(index) {
@ -58,8 +60,8 @@ $(function() {
}); });
}); });
}); });
</script>'; </script>';
}
/* /*
Header Header

Loading…
Cancel
Save