Fixed syntax error.

This commit is contained in:
Martin Edenhofer 2016-09-27 23:57:49 +02:00
parent 0d377d40ab
commit 5934207f82
2 changed files with 8 additions and 8 deletions

View file

@ -149,10 +149,10 @@ class _ajaxSingleton
abortedIds
runNextInQueue: =>
if @queueList && @queueList[0]
return if !@queueList || !@queueList[0]
@queueRunning = true
data = @queueList.shift()
@addCurrentRequest(params['id'], data, true)
@addCurrentRequest(data['id'], data, true)
_show_spinner: =>
@count++

View file

@ -5,7 +5,7 @@ class App.SearchableAjaxSelect extends App.SearchableSelect
# convert requested object
# e.g. Ticket to ticket or AnotherObject to another_object
objectString = underscored( @options.attribute.object )
objectString = underscored(@options.attribute.object)
# create common accessors
@apiPath = App.Config.get('api_path')
@ -45,13 +45,13 @@ class App.SearchableAjaxSelect extends App.SearchableSelect
@searchResultCache[@cacheKey] = data
# load assets
App.Collection.loadAssets( data.assets )
App.Collection.loadAssets(data.assets)
# get options from search result
options = []
for object in data.result
if object.type is 'Ticket'
ticket = App.Ticket.find( object.id )
ticket = App.Ticket.find(object.id)
data =
name: "##{ticket.number} - #{ticket.title}"
value: ticket.id
@ -63,7 +63,7 @@ class App.SearchableAjaxSelect extends App.SearchableSelect
value: user.id
options.push data
else if object.type is 'Organization'
organization = App.Organization.find( object.id )
organization = App.Organization.find(object.id)
data =
name: "#{organization.displayName()}"
value: organization.id