From 7bccc25d750353748eff357aa2c4669cfedbb628 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 17 Oct 2017 10:37:44 +0200 Subject: [PATCH] Fixed some typos - with the help of @natseg - Pull request #1437. --- .../controllers/_ui_element/_application_ui_element.coffee | 4 ++-- .../app/controllers/_ui_element/column_select.coffee | 2 +- .../app/controllers/_ui_element/ticket_selector.coffee | 2 +- app/assets/javascripts/app/controllers/widget/user.coffee | 2 +- app/assets/javascripts/app/models/organization.coffee | 2 +- app/models/concerns/checks_html_sanitized.rb | 2 +- app/models/observer/chat/leave/background_job.rb | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/_application_ui_element.coffee b/app/assets/javascripts/app/controllers/_ui_element/_application_ui_element.coffee index 18b220889..1fc8509cc 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/_application_ui_element.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/_application_ui_element.coffee @@ -186,13 +186,13 @@ class App.UiElement.ApplicationUiElement @selectedOptions: (attribute) -> return if !attribute.options - # lookup of any record, if it need to be selected + # lookup of any record, if it needs to be selected for record in attribute.options if @_selectedOptionsIsSelected(attribute.value, record) record.selected = 'selected' record.checked = 'checked' - # if noting is selected / checked, use default as selected / checked + # if nothing is selected / checked, use default as selected / checked selected = false for record in attribute.options if record.selected || record.checked diff --git a/app/assets/javascripts/app/controllers/_ui_element/column_select.coffee b/app/assets/javascripts/app/controllers/_ui_element/column_select.coffee index d28855e4e..e7ab5301e 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/column_select.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/column_select.coffee @@ -17,7 +17,7 @@ class App.UiElement.column_select extends App.UiElement.ApplicationUiElement # sort attribute.options @sortOptions( attribute, params ) - # finde selected/checked item of list + # find selected/checked item of list @selectedOptions( attribute, params ) # disable item of list diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee index cd5e81d25..a88901169 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee @@ -313,7 +313,7 @@ class App.UiElement.ticket_selector elementRow.find('.js-value').removeClass('hide') @buildValue(elementFull, elementRow, groupAndAttribute, elements, meta, attribute) - # force to use auto complition on user lookup + # force to use auto completion on user lookup attribute = _.clone(attributeConfig) name = "#{attribute.name}::#{groupAndAttribute}::value" diff --git a/app/assets/javascripts/app/controllers/widget/user.coffee b/app/assets/javascripts/app/controllers/widget/user.coffee index b065d083e..d7836e23a 100644 --- a/app/assets/javascripts/app/controllers/widget/user.coffee +++ b/app/assets/javascripts/app/controllers/widget/user.coffee @@ -30,7 +30,7 @@ class App.WidgetUser extends App.Controller # add to show if value exists if ( user[name] || attributeConfig.tag is 'richtext' ) && attributeConfig.shown - # do not show firstname and lastname / already show via diplayName() + # do not show firstname and lastname / already show via displayName() if name isnt 'firstname' && name isnt 'lastname' && name isnt 'organization' userData.push attributeConfig diff --git a/app/assets/javascripts/app/models/organization.coffee b/app/assets/javascripts/app/models/organization.coffee index 5414458d9..b3dd7dbe4 100644 --- a/app/assets/javascripts/app/models/organization.coffee +++ b/app/assets/javascripts/app/models/organization.coffee @@ -32,7 +32,7 @@ Mit **Organisationen** können Sie Kunden **gruppieren**. Dies hat u. a. zwei be @_fillUp: (data) -> - # addd users of organization + # add users of organization if data['member_ids'] data['members'] = [] for user_id in data['member_ids'] diff --git a/app/models/concerns/checks_html_sanitized.rb b/app/models/concerns/checks_html_sanitized.rb index e89a12fa4..0247fc427 100644 --- a/app/models/concerns/checks_html_sanitized.rb +++ b/app/models/concerns/checks_html_sanitized.rb @@ -31,7 +31,7 @@ module ChecksHtmlSanitized =begin -serve methode to mark HTML attrbibutes that need to get sanitized +serve method to mark HTML attributes that need to get sanitized class Model < ApplicationModel include Sanitized diff --git a/app/models/observer/chat/leave/background_job.rb b/app/models/observer/chat/leave/background_job.rb index 53c5eec5b..1e9eb9a15 100644 --- a/app/models/observer/chat/leave/background_job.rb +++ b/app/models/observer/chat/leave/background_job.rb @@ -21,7 +21,7 @@ class Observer::Chat::Leave::BackgroundJob realname = User.lookup(id: @session['id']).fullname end - # notifiy participients + # notify participants message = { event: 'chat_session_left', data: {