enable line wrapping by default and remove the checkbox to change it
This commit is contained in:
parent
dbd347bfa0
commit
120f032b1a
3 changed files with 2 additions and 20 deletions
|
@ -1,6 +1,7 @@
|
|||
Please view this file on the master branch, on stable branches it's out of date.
|
||||
|
||||
v 7.10.0 (unreleased)
|
||||
- enable line wrapping per default and remove the checkbox to toggle it (Hannes Rosenögger)
|
||||
- Add a service to support external wikis (Hannes Rosenögger)
|
||||
|
||||
v 7.9.0 (unreleased)
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
$ ->
|
||||
# Toggle line wrapping in diff.
|
||||
#
|
||||
# %div.diff-file
|
||||
# %input.js-toggle-diff-line-wrap
|
||||
# %td.line_content
|
||||
#
|
||||
$("body").on "click", ".js-toggle-diff-line-wrap", (e) ->
|
||||
diffFile = $(@).closest(".diff-file")
|
||||
if $(@).is(":checked")
|
||||
diffFile.addClass("diff-wrap-lines")
|
||||
else
|
||||
diffFile.removeClass("diff-wrap-lines")
|
||||
|
|
@ -22,11 +22,6 @@
|
|||
|
||||
.diff-btn-group
|
||||
- if blob.text?
|
||||
- unless params[:view] == 'parallel'
|
||||
%label
|
||||
= check_box_tag nil, 1, false, class: 'js-toggle-diff-line-wrap'
|
||||
Wrap text
|
||||
|
||||
= link_to '#', class: 'js-toggle-diff-comments btn btn-sm' do
|
||||
%i.fa.fa-chevron-down
|
||||
Show/Hide comments
|
||||
|
@ -39,7 +34,7 @@
|
|||
|
||||
= view_file_btn(@commit.id, diff_file, project)
|
||||
|
||||
.diff-content
|
||||
.diff-content.diff-wrap-lines
|
||||
-# Skipp all non non-supported blobs
|
||||
- return unless blob.respond_to?('text?')
|
||||
- if blob.text?
|
||||
|
|
Loading…
Reference in a new issue