Fixed some typos - with the help of @natseg - Pull request #1437.
This commit is contained in:
parent
0632e421b0
commit
7bccc25d75
7 changed files with 8 additions and 8 deletions
|
@ -186,13 +186,13 @@ class App.UiElement.ApplicationUiElement
|
||||||
@selectedOptions: (attribute) ->
|
@selectedOptions: (attribute) ->
|
||||||
return if !attribute.options
|
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
|
for record in attribute.options
|
||||||
if @_selectedOptionsIsSelected(attribute.value, record)
|
if @_selectedOptionsIsSelected(attribute.value, record)
|
||||||
record.selected = 'selected'
|
record.selected = 'selected'
|
||||||
record.checked = 'checked'
|
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
|
selected = false
|
||||||
for record in attribute.options
|
for record in attribute.options
|
||||||
if record.selected || record.checked
|
if record.selected || record.checked
|
||||||
|
|
|
@ -17,7 +17,7 @@ class App.UiElement.column_select extends App.UiElement.ApplicationUiElement
|
||||||
# sort attribute.options
|
# sort attribute.options
|
||||||
@sortOptions( attribute, params )
|
@sortOptions( attribute, params )
|
||||||
|
|
||||||
# finde selected/checked item of list
|
# find selected/checked item of list
|
||||||
@selectedOptions( attribute, params )
|
@selectedOptions( attribute, params )
|
||||||
|
|
||||||
# disable item of list
|
# disable item of list
|
||||||
|
|
|
@ -313,7 +313,7 @@ class App.UiElement.ticket_selector
|
||||||
elementRow.find('.js-value').removeClass('hide')
|
elementRow.find('.js-value').removeClass('hide')
|
||||||
@buildValue(elementFull, elementRow, groupAndAttribute, elements, meta, attribute)
|
@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)
|
attribute = _.clone(attributeConfig)
|
||||||
|
|
||||||
name = "#{attribute.name}::#{groupAndAttribute}::value"
|
name = "#{attribute.name}::#{groupAndAttribute}::value"
|
||||||
|
|
|
@ -30,7 +30,7 @@ class App.WidgetUser extends App.Controller
|
||||||
# add to show if value exists
|
# add to show if value exists
|
||||||
if ( user[name] || attributeConfig.tag is 'richtext' ) && attributeConfig.shown
|
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'
|
if name isnt 'firstname' && name isnt 'lastname' && name isnt 'organization'
|
||||||
userData.push attributeConfig
|
userData.push attributeConfig
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ Mit **Organisationen** können Sie Kunden **gruppieren**. Dies hat u. a. zwei be
|
||||||
|
|
||||||
@_fillUp: (data) ->
|
@_fillUp: (data) ->
|
||||||
|
|
||||||
# addd users of organization
|
# add users of organization
|
||||||
if data['member_ids']
|
if data['member_ids']
|
||||||
data['members'] = []
|
data['members'] = []
|
||||||
for user_id in data['member_ids']
|
for user_id in data['member_ids']
|
||||||
|
|
|
@ -31,7 +31,7 @@ module ChecksHtmlSanitized
|
||||||
|
|
||||||
=begin
|
=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
|
class Model < ApplicationModel
|
||||||
include Sanitized
|
include Sanitized
|
||||||
|
|
|
@ -21,7 +21,7 @@ class Observer::Chat::Leave::BackgroundJob
|
||||||
realname = User.lookup(id: @session['id']).fullname
|
realname = User.lookup(id: @session['id']).fullname
|
||||||
end
|
end
|
||||||
|
|
||||||
# notifiy participients
|
# notify participants
|
||||||
message = {
|
message = {
|
||||||
event: 'chat_session_left',
|
event: 'chat_session_left',
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in a new issue