From ab189f46ec88258d54963d0d1919d91236f535de Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Wed, 8 Nov 2017 17:14:12 +0100 Subject: [PATCH] Fixed issue #1628 - Added support for new Twitter tweet length limit of 280 chars. --- app/assets/javascripts/app/controllers/layout_ref.coffee | 2 +- .../javascripts/app/controllers/ticket_zoom/article_new.coffee | 2 +- .../app/views/layout_ref/twitter_conversation.jst.eco | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index f4dc268e7..6b49ed6bc 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -2121,7 +2121,7 @@ class TwitterConversationRef extends App.ControllerContent open: 88 closed: 20 - maxTextLength: 140 + maxTextLength: 280 warningTextLength: 10 constructor: -> diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee index edb39480d..42b036c6f 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee @@ -144,7 +144,7 @@ class App.TicketZoomArticleNew extends App.Controller attributes: [] internal: false, features: ['body:limit', 'body:initials'] - maxTextLength: 140 + maxTextLength: 280 warningTextLength: 30 } if possibleArticleType['twitter direct-message'] diff --git a/app/assets/javascripts/app/views/layout_ref/twitter_conversation.jst.eco b/app/assets/javascripts/app/views/layout_ref/twitter_conversation.jst.eco index c909828a8..7761ae209 100644 --- a/app/assets/javascripts/app/views/layout_ref/twitter_conversation.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/twitter_conversation.jst.eco @@ -440,7 +440,7 @@