diff --git a/style/ouop-styles.less b/style/ouop-styles.less index bbde97f..85bb295 100644 --- a/style/ouop-styles.less +++ b/style/ouop-styles.less @@ -145,6 +145,19 @@ div[ data-region = drawer ] { .col-tesla-status-vr { display: none; } + + // TeSLA consent page. + &#page-local-tesla-views-agreement form .required { + display: none; + } + + // Assignment page. + &#page-mod-assign-view.ouop-submitted { + #region-main h2, + #intro { + display: none; + } + } } diff --git a/user/ouop-local-fixes.js b/user/ouop-local-fixes.js index 9cad4d1..d7b455f 100644 --- a/user/ouop-local-fixes.js +++ b/user/ouop-local-fixes.js @@ -115,10 +115,18 @@ }; OUOP.inject_post_activity_survey_link = function ($, resp) { - var $container = $('#page-mod-quiz-review #user-notifications'); + var $container_quiz = $('#page-mod-quiz-review #user-notifications'); + var $container_assign = $('#page-mod-assign-view'); var survey_url = resp.config.post_survey_url.replace('{OUCU}', resp.profile.ouop_oucu); - $container.append(OUOP.alert(OUOP.str('post_survey_msg', survey_url))); + $container_quiz.append(OUOP.alert(OUOP.str('post_survey_msg', survey_url))); + + if ($container_assign.find('.submissionstatussubmitted').length) { + $container_assign.find('#user-notifications').append(OUOP.alert(OUOP.str('post_survey_msg', survey_url))); + $container_assign.addClass('ouop-submitted'); + + C.warn('post-activity-survey-link: assign'); + } }; OUOP.toggle_hidden_ui_button = function ($) { diff --git a/user/script.js b/user/script.js index a605f5b..6361a13 100644 --- a/user/script.js +++ b/user/script.js @@ -114,9 +114,12 @@ function ouop_less_test ($) { var $less_error = $('style[ id = "less:error-message" ]'); var $less = $('style[ id ^= less ]'); + var $css = $('link[ href *= "ouop-styles.css" ]'); if ($less_error.length) { C.error('ouopenid LESS error:', $less.attr('id'), $('.less-error-message').text()); + } else if ($css.length) { + C.debug('ouopenid: ', $css.attr('href')); } else if ($less.length) { C.debug('ouopenid: ', $less.attr('id')); } else {