if (commentCloud.length === 0) {
td.html(form);
commentCloud = td.find('.comment-code-cloud');
- var id = assingMenuAttributes(commentCloud.find('.menu'));
- commentCloud.find('.tab.segment').each(function(i, item) {
- $(item).attr('data-tab', $(item).attr('data-tab') + id);
- });
+ assingMenuAttributes(commentCloud.find('.menu'));
+
td.find("input[name='line']").val(idx);
td.find("input[name='side']").val(side === "left" ? "previous":"proposed");
td.find("input[name='path']").val(path);
}
function initRepositoryCollaboration() {
- console.log('initRepositoryCollaboration');
-
// Change collaborator access mode
$('.access-mode.menu .item').click(function () {
var $menu = $(this).parent();
}
function initUserSettings() {
- console.log('initUserSettings');
-
// Options
if ($('.user.settings.profile').length > 0) {
$('#username').keyup(function () {
if(form.length > 0 && form.hasClass('comment-form')) {
form.addClass('hide');
form.parent().find('button.comment-form-reply').show();
- }else {
- console.log("Hey");
+ } else {
form.closest('.comment-code-cloud').remove()
}
}