prevent request comment button to be shown on editors not beeing the first editor too early.

This commit is contained in:
Ralf Teusner
2016-05-03 08:32:27 +02:00
parent c15c868e2f
commit 98afb71ba9
3 changed files with 4 additions and 4 deletions

View File

@@ -478,7 +478,7 @@ $(function() {
};
var initializeRequestForComments = function () {
var button = $('#requestCommentsButton');
var button = $('.requestCommentsButton');
button.hide();
button.on('click', function() {
$('#comment-modal').modal('show');
@@ -1171,7 +1171,7 @@ $(function() {
}).error(ajaxError);
$('#comment-modal').modal('hide');
var button = $('#requestCommentsButton');
var button = $('.requestCommentsButton');
button.fadeOut();
}

View File

@@ -89,7 +89,7 @@ button i.fa-spin {
font-size: 0.8em;
}
#requestCommentsButton {
.requestCommentsButton {
position: relative;
margin-top: -50px;
margin-right: 25px;

View File

@@ -14,6 +14,6 @@
.editor-content.hidden data-file-id=file.ancestor_id = file.content
.editor data-file-id=file.ancestor_id data-indent-size=file.file_type.indent_size data-mode=file.file_type.editor_mode data-read-only=file.read_only data-id=file.id
button.btn.btn-primary id='requestCommentsButton' type='button'
button.btn.btn-primary.requestCommentsButton type='button'
i.fa.fa-comment-o
= t('exercises.editor.requestComments')