Fixed see more link.
This commit is contained in:
parent
6963045e9f
commit
ddd20ae155
1 changed files with 5 additions and 6 deletions
|
@ -608,9 +608,9 @@ class ArticleView extends App.Controller
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
$(e.target).hide()
|
$(e.target).hide()
|
||||||
if $(e.target).next('div')[0]
|
if $(e.target).next('div')[0]
|
||||||
$(e.target).next('div').show()
|
$(e.target).next('div').removeClass('hide')
|
||||||
else
|
else
|
||||||
$(e.target).parent().next('div').show()
|
$(e.target).parent().next('div').removeClass('hide')
|
||||||
|
|
||||||
checkIfSignatureIsNeeded: (article_type) =>
|
checkIfSignatureIsNeeded: (article_type) =>
|
||||||
|
|
||||||
|
@ -705,9 +705,9 @@ class Article extends App.Controller
|
||||||
if article_lines.length > preview
|
if article_lines.length > preview
|
||||||
preview_mode = true
|
preview_mode = true
|
||||||
if article_lines[preview] is ''
|
if article_lines[preview] is ''
|
||||||
article_lines.splice( preview, 0, '----SEEMORE----' )
|
article_lines.splice( preview, 0, '-----SEEMORE-----' )
|
||||||
else
|
else
|
||||||
article_lines.splice( preview + 1, 0, '----SEEMORE----' )
|
article_lines.splice( preview - 1, 0, '-----SEEMORE-----' )
|
||||||
@article['html'] = article_lines.join("\n")
|
@article['html'] = article_lines.join("\n")
|
||||||
@article['html'] = window.linkify( @article['html'] )
|
@article['html'] = window.linkify( @article['html'] )
|
||||||
notify = '<a href="#" class="show_toogle">' + App.i18n.translateContent('See more') + '</a>'
|
notify = '<a href="#" class="show_toogle">' + App.i18n.translateContent('See more') + '</a>'
|
||||||
|
@ -715,7 +715,7 @@ class Article extends App.Controller
|
||||||
# preview mode
|
# preview mode
|
||||||
if preview_mode
|
if preview_mode
|
||||||
@article_changed = false
|
@article_changed = false
|
||||||
@article['html'] = @article['html'].replace /^\n{0,10}----SEEMORE----\n/m, (match) =>
|
@article['html'] = @article['html'].replace /^-----SEEMORE-----\n/m, (match) =>
|
||||||
@article_changed = true
|
@article_changed = true
|
||||||
notify + '<div class="hide">'
|
notify + '<div class="hide">'
|
||||||
if @article_changed
|
if @article_changed
|
||||||
|
@ -730,7 +730,6 @@ class Article extends App.Controller
|
||||||
if @article_changed
|
if @article_changed
|
||||||
@article['html'] = @article['html'] + '</div>'
|
@article['html'] = @article['html'] + '</div>'
|
||||||
|
|
||||||
|
|
||||||
actionRow: ->
|
actionRow: ->
|
||||||
if @isRole('Customer')
|
if @isRole('Customer')
|
||||||
@article.actions = []
|
@article.actions = []
|
||||||
|
|
Loading…
Reference in a new issue