Show More
@@ -1056,9 +1056,11 b' table.cb {' | |||||
1056 | } |
|
1056 | } | |
1057 |
|
1057 | |||
1058 | &> button.cb-comment-box-opener { |
|
1058 | &> button.cb-comment-box-opener { | |
1059 | padding: 2px 6px 2px 6px; |
|
1059 | ||
1060 |
|
|
1060 | padding: 2px 5px 1px 5px; | |
1061 |
margin-t |
|
1061 | margin-left: 0px; | |
|
1062 | margin-top: -1px; | |||
|
1063 | ||||
1062 | border-radius: @border-radius; |
|
1064 | border-radius: @border-radius; | |
1063 | position: absolute; |
|
1065 | position: absolute; | |
1064 | display: none; |
|
1066 | display: none; |
@@ -821,14 +821,12 b' var CommentsController = function() { /*' | |||||
821 | }; |
|
821 | }; | |
822 | var submitSuccessCallback = function(json_data) { |
|
822 | var submitSuccessCallback = function(json_data) { | |
823 | $form.remove(); |
|
823 | $form.remove(); | |
824 | console.log(json_data) |
|
|||
825 | try { |
|
824 | try { | |
826 | var html = json_data.rendered_text; |
|
825 | var html = json_data.rendered_text; | |
827 | var lineno = json_data.line_no; |
|
826 | var lineno = json_data.line_no; | |
828 | var target_id = json_data.target_id; |
|
827 | var target_id = json_data.target_id; | |
829 |
|
828 | |||
830 | $comments.find('.cb-comment-add-button').before(html); |
|
829 | $comments.find('.cb-comment-add-button').before(html); | |
831 | console.log(lineno, target_id, $comments); |
|
|||
832 |
|
830 | |||
833 | } catch (e) { |
|
831 | } catch (e) { | |
834 | console.error(e); |
|
832 | console.error(e); |
General Comments 0
You need to be logged in to leave comments.
Login now