Skip to content

Commit

Permalink
NateWr#6 change the loading ID to the class
Browse files Browse the repository at this point in the history
  • Loading branch information
Yjohn committed Oct 13, 2017
1 parent 99bd9e5 commit afb3936
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const showHideLoader = function (id, showLoader) {
const loader = document.querySelector(`.question-${id} #loading`);
const loader = document.querySelector(`.question-${id} .loading`);
const hideButtons = document.querySelectorAll(`.question-${id} .button-feedback`);

if (showLoader === true) {
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ a:focus {
}

/* Loader (*/
#loading {
.loading {

width: 40px;
height: 40px;
Expand Down
2 changes: 1 addition & 1 deletion views/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<span class="value-helpful" data-question-id={{this._id}}>{{this.helpful}}/{{this.total}} people found this helpful. Was this entry helpful?</span>
<button class="button button--small button-feedback" data-helpful="true" data-question-id="{{this._id}}">Yes</button>
<button class="button button--small button-feedback" data-helpful="false" data-question-id="{{this._id}}">No</button>
<div id="loading" class="hidden"></div>
<div class="loading hidden"></div>
</div>
</li>
{{/each}}
Expand Down

0 comments on commit afb3936

Please sign in to comment.