prevent request comment button to be shown on editors not beeing the first editor too early.
This commit is contained in:
@@ -478,7 +478,7 @@ $(function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var initializeRequestForComments = function () {
|
var initializeRequestForComments = function () {
|
||||||
var button = $('#requestCommentsButton');
|
var button = $('.requestCommentsButton');
|
||||||
button.hide();
|
button.hide();
|
||||||
button.on('click', function() {
|
button.on('click', function() {
|
||||||
$('#comment-modal').modal('show');
|
$('#comment-modal').modal('show');
|
||||||
@@ -1171,7 +1171,7 @@ $(function() {
|
|||||||
}).error(ajaxError);
|
}).error(ajaxError);
|
||||||
|
|
||||||
$('#comment-modal').modal('hide');
|
$('#comment-modal').modal('hide');
|
||||||
var button = $('#requestCommentsButton');
|
var button = $('.requestCommentsButton');
|
||||||
button.fadeOut();
|
button.fadeOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -89,7 +89,7 @@ button i.fa-spin {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#requestCommentsButton {
|
.requestCommentsButton {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
|
@@ -14,6 +14,6 @@
|
|||||||
.editor-content.hidden data-file-id=file.ancestor_id = file.content
|
.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
|
.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
|
i.fa.fa-comment-o
|
||||||
= t('exercises.editor.requestComments')
|
= t('exercises.editor.requestComments')
|
Reference in New Issue
Block a user