Skip to content

Commit

Permalink
Modified the check for the presence of conclude button. The class nam…
Browse files Browse the repository at this point in the history
…e changed from 'btn' to 'Button'
  • Loading branch information
sapnamysore committed Jul 6, 2017
1 parent e4b561e commit ad85fda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/course_settings_disable_course_conclude.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function addCourseConcludeButtonDisabledMessage() {
var msg = '(Please contact your local academic support staff to conclude the course)';
var $concludeButton = $("a[class~='btn'][href$='event=conclude']");
var $concludeButton = $("a[class~='Button'][href$='event=conclude']");
$concludeButton.addClass('conclude_course_link');
$concludeButton.append('<p><em>' + msg + '</em></p>');
}
Expand All @@ -20,7 +20,7 @@ function addCourseUnconcludeButtonDisabledMessage() {
}

function disableCourseConcludeButton() {
var $concludeButton = $("a[class~='btn'][href$='event=conclude']");
var $concludeButton = $("a[class~='Button'][href$='event=conclude']");
$concludeButton.attr('disabled', true);
}

Expand All @@ -35,7 +35,7 @@ function disableCourseConcludeDate() {
}

function isConcludeButtonPresent(){
$concludeBtn =$("a[class~='btn'][href$='event=conclude']");
$concludeBtn =$("a[class~='Button'][href$='event=conclude']");
if ($concludeBtn.length > 0 )
return true;
return false;
Expand Down

0 comments on commit ad85fda

Please sign in to comment.