Skip to content

Commit

Permalink
Merge pull request #42 from harvard-canvas-branding/hotfix/v2.2.2
Browse files Browse the repository at this point in the history
fixed references to the add-user and add-course buttons
  • Loading branch information
cmurtaugh authored Feb 16, 2017
2 parents a034529 + eecaebe commit 0a26003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions js/account_settings_disable_add_user_and_course.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
function isAddUserButtonPresent(){
$btn = $('#right-side > div.rs-margin-all > a.add_user_link.btn.button-sidebar-wide');
$btn = $('#right-side > div.rs-margin-bottom > a.add_user_link.Button.button-sidebar-wide');
return $btn.length > 0;
}

function isAddCourseButtonPresent(){
$btn = $('#right-side > div.rs-margin-all > a.add_course_link.btn.button-sidebar-wide');
$btn = $('#right-side > div.rs-margin-bottom > a.add_course_link.Button.button-sidebar-wide');
return $btn.length > 0;
}

function disableAddUserButton(){
// remove the href asd well so people can't get the url
// and try it directly
$('#right-side > div.rs-margin-all > a.add_user_link.btn.button-sidebar-wide').removeAttr("href").addClass('disabled');
$('#right-side > div.rs-margin-bottom > a.add_user_link.Button.button-sidebar-wide').removeAttr("href").addClass('disabled');
}

function disableAddCourseButton(){
// remove the href asd well so people can't get the url
// and try it directly
$('#right-side > div.rs-margin-all > a.add_course_link.btn.button-sidebar-wide').removeAttr('href').addClass('disabled');
$('#right-side > div.rs-margin-bottom > a.add_course_link.Button.button-sidebar-wide').removeAttr('href').addClass('disabled');
}

function initDisableAddUserCourse() {
Expand Down
4 changes: 2 additions & 2 deletions js/footer_copyright.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ $(document).ready(function(e) {
* enough. also, wrapping things in <p> tags doesn't get you multiple
* lines
*/
var harvardCopy =
'<div>Copyright &copy; 2016 The President and Fellows of Harvard College | ' +
var harvardCopy =
'<div>Copyright &copy; 2017 The President and Fellows of Harvard College | ' +
'<a href="https://wiki.harvard.edu/confluence/display/canvas/Harvard+Privacy+Policy+for+Canvas" id="privacy_policy_link">Privacy Policy</a> | ' +
'<a href="https://wiki.harvard.edu/confluence/display/canvas/Harvard+Acceptable+Use+Policy+for+Canvas" id="acceptable_use_policy_link">Acceptable Use Policy</a>' +
'</div>';
Expand Down

0 comments on commit 0a26003

Please sign in to comment.