Skip to content

Commit

Permalink
Translate Sweetalert cancel button when body is rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoporazzi committed Feb 24, 2017
1 parent 5cdbd15 commit 046754a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rocketchat-ui-master/master/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ Template.main.onRendered ->
$('.input-message').focus()
, 100


Tracker.autorun ->
swal.setDefaults({cancelButtonText: t('Cancel')})

prefs = Meteor.user()?.settings?.preferences
if prefs?.hideUsernames
$(document.body).on('mouseleave', 'button.thumb', (e) ->
Expand Down

0 comments on commit 046754a

Please sign in to comment.