diff --git a/app/assets/javascripts/app/controllers/widget/translation_inline.coffee b/app/assets/javascripts/app/controllers/widget/translation_inline.coffee index 728852bc3..c33b03838 100644 --- a/app/assets/javascripts/app/controllers/widget/translation_inline.coffee +++ b/app/assets/javascripts/app/controllers/widget/translation_inline.coffee @@ -16,14 +16,9 @@ class Widget enable: -> App.Config.set( 'translation_inline', true ) App.Event.trigger('ui:rerender') - $(document).bind('click.block', (e) -> - e.preventDefault() - e.stopPropagation() - ) disable: -> App.Config.set( 'translation_inline', false ) App.Event.trigger('ui:rerender') - $(document).unbind('click.block') App.Config.set( 'translation_inline', Widget, 'Widgets' ) \ No newline at end of file diff --git a/app/assets/javascripts/app/lib/app_post/i18n.coffee b/app/assets/javascripts/app/lib/app_post/i18n.coffee index f52667ca0..beda7b965 100644 --- a/app/assets/javascripts/app/lib/app_post/i18n.coffee +++ b/app/assets/javascripts/app/lib/app_post/i18n.coffee @@ -224,7 +224,7 @@ class _i18nSingleton extends Spine.Module translateContent: (string, args) => if App.Config.get('translation_inline') - return '' + App.Utils.htmlEscape(@translate(string)) + '' + return '' + App.Utils.htmlEscape(@translate(string)) + '' translated = App.Utils.htmlEscape(@translate(string, args)) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index bf70a33d8..a0b87c71a 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -2558,6 +2558,7 @@ footer { .translation { border: 1px dotted #F92; border-radius: 3px; + cursor: text; } .translation:hover { }