Browse Source

Fixed some typos - with the help of @natseg - Pull request #1437.

Thorsten Eckel 7 years ago
parent
commit
7bccc25d75

+ 2 - 2
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

+ 1 - 1
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

+ 1 - 1
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"

+ 1 - 1
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
 

+ 1 - 1
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']

+ 1 - 1
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

+ 1 - 1
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: {