Skip to content
Permalink
Browse files

Allows to define custom class name in CoffeeScript when frontend and …

…backend class names don't match
  • Loading branch information
Mantas Masalskis authored and zammad-sync committed Dec 23, 2019
1 parent ebe4746 commit 14dfdb4db97e4eb35c9e05252897757a89cb70e1
@@ -806,7 +806,7 @@ set new attributes of model (remove already available attributes)
type: 'GET'
url: "#{@apiPath}/tags"
data:
object: @.className
object: @serverClassName || @className
o_id: id
processData: true
success: (data, status, xhr) ->
@@ -818,7 +818,7 @@ set new attributes of model (remove already available attributes)
type: 'GET'
url: "#{@apiPath}/tags/add"
data:
object: @.className
object: @serverClassName || @className
o_id: id
item: item
processData: true
@@ -829,7 +829,7 @@ set new attributes of model (remove already available attributes)
type: 'GET'
url: "#{@apiPath}/tags/remove"
data:
object: @.className
object: @serverClassName || @className
o_id: id
item: item
processData: true
@@ -4,6 +4,8 @@ class App.KnowledgeBaseAnswer extends App.Model
@extend App.KnowledgeBaseActions
@extend App.KnowledgeBaseCanBePublished

@serverClassName: 'KnowledgeBase::Answer'

url: ->
@knowledge_base().generateURL('answers')

0 comments on commit 14dfdb4

Please sign in to comment.
You can’t perform that action at this time.