Skip to content

Commit

Permalink
Resolved Issue codeforamerica#244
Browse files Browse the repository at this point in the history
Resolved Error : Agree to Terms error message on create lesson page codeforamerica#244
  • Loading branch information
vipulkanade committed Apr 12, 2015
1 parent fdf26d0 commit 3957628
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ th {
position: relative;
top: -7px;
list-style:disc;
overflow: auto;
}

.plain li {
Expand Down
9 changes: 9 additions & 0 deletions js/teach.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var teach = (function (teach) {
$("#preview").click(_previewClicked);
$("#save-draft").click(_saveDraft);
$("#submit").click(_submitClicked);
$("#terms").click(_termsChecked);
$(".temp-close-btn").click(_closeClicked);
$("#step-options-btn").click(_optionsClicked);
$('li.progress-button').click(_progressClicked);
Expand Down Expand Up @@ -901,6 +902,14 @@ var teach = (function (teach) {
}
}

function _termsChecked () {
if ($("#terms").prop("checked")) {
$("#alert").addClass("hidden")
} else {
$("#alert").removeClass("hidden").text("You need to agree to the Creative Commons terms.")
};
}

function _submitClicked(){
if ($("#terms").prop("checked")){
if (serviceId) {
Expand Down

0 comments on commit 3957628

Please sign in to comment.