From 666dbe7efe73f45dc1a152775725a8aa30c78bdf Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 8 Jan 2013 11:18:33 +0100 Subject: [PATCH] Removed leading '/' of 'api/' url. --- .../app/controllers/_application_controller.js.coffee | 2 +- .../app/controllers/_application_controller_form.js.coffee | 4 ++-- .../app/controllers/_dashboard/activity_stream.js.coffee | 2 +- .../app/controllers/_dashboard/recent_viewed.js.coffee | 2 +- .../javascripts/app/controllers/_dashboard/rss.js.coffee | 2 +- .../javascripts/app/controllers/_dashboard/ticket.js.coffee | 2 +- .../app/controllers/agent_ticket_create.js.coffee | 2 +- .../app/controllers/agent_ticket_history.js.coffee | 2 +- .../app/controllers/agent_ticket_merge.js.coffee | 4 ++-- .../javascripts/app/controllers/agent_ticket_view.js.coffee | 4 ++-- .../javascripts/app/controllers/agent_ticket_zoom.js.coffee | 2 +- .../app/controllers/customer_ticket_new.js.coffee | 2 +- .../javascripts/app/controllers/getting_started.js.coffee | 2 +- .../javascripts/app/controllers/link_info_widget.js.coffee | 6 +++--- app/assets/javascripts/app/controllers/navigation.js.coffee | 2 +- app/assets/javascripts/app/controllers/package.js.coffee | 4 ++-- .../javascripts/app/controllers/reset_password.js.coffee | 6 +++--- app/assets/javascripts/app/controllers/tag_widget.js.coffee | 6 +++--- app/assets/javascripts/app/lib/app_post/websocket.js.coffee | 6 +++--- app/assets/javascripts/app/models/channel.js.coffee | 2 +- app/assets/javascripts/app/models/email_address.js.coffee | 2 +- app/assets/javascripts/app/models/group.js.coffee | 2 +- app/assets/javascripts/app/models/organization.js.coffee | 2 +- app/assets/javascripts/app/models/overview.js.coffee | 2 +- .../javascripts/app/models/postmaster_filter.js.coffee | 2 +- app/assets/javascripts/app/models/role.js.coffee | 2 +- app/assets/javascripts/app/models/setting.js.coffee | 2 +- app/assets/javascripts/app/models/signature.js.coffee | 2 +- app/assets/javascripts/app/models/template.js.coffee | 2 +- app/assets/javascripts/app/models/text_module.js.coffee | 2 +- app/assets/javascripts/app/models/ticket.js.coffee | 2 +- app/assets/javascripts/app/models/ticket_article.js.coffee | 2 +- app/assets/javascripts/app/models/ticket_priority.js.coffee | 2 +- app/assets/javascripts/app/models/ticket_state.js.coffee | 2 +- app/assets/javascripts/app/models/user.js.coffee | 2 +- app/assets/javascripts/app/views/agent_ticket_zoom.jst.eco | 4 ++-- app/assets/javascripts/app/views/package.jst.eco | 2 +- 37 files changed, 50 insertions(+), 50 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index dcd310e8b..5ddd2d243 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -282,7 +282,7 @@ class App.Controller extends Spine.Controller tickets = {} App.Com.ajax( type: 'GET', - url: '/api/ticket_customer', + url: 'api/ticket_customer', data: { customer_id: data.user_id, } diff --git a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee index 3ccfbdb05..ee741dc01 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_form.js.coffee @@ -292,7 +292,7 @@ class App.ControllerForm extends App.Controller u = => @el.find('#' + fileUploaderId ).fineUploader( request: - endpoint: '/api/ticket_attachment_new' + endpoint: 'api/ticket_attachment_new' params: form_id: @form_id text: @@ -374,7 +374,7 @@ class App.ControllerForm extends App.Controller ### # @log '111111', @local_attribute_full, item $(@local_attribute_full).autocomplete( - source: '/api/users/search', + source: 'api/users/search', minLength: 2, select: ( event, ui ) => # @log 'selected', event, ui diff --git a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee index 1e91e4379..5db375f08 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/activity_stream.js.coffee @@ -25,7 +25,7 @@ class App.DashboardActivityStream extends App.Controller App.Com.ajax( id: 'dashoard_activity_stream' type: 'GET' - url: '/api/activity_stream' + url: 'api/activity_stream' data: { limit: 8 } diff --git a/app/assets/javascripts/app/controllers/_dashboard/recent_viewed.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/recent_viewed.js.coffee index 6c24fd11f..8004c2140 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/recent_viewed.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/recent_viewed.js.coffee @@ -14,7 +14,7 @@ class App.DashboardRecentViewed extends App.Controller App.Com.ajax( id: 'dashboard_recent_viewed', type: 'GET', - url: '/api/recent_viewed', + url: 'api/recent_viewed', data: { limit: 5, } diff --git a/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee index e3b055fe9..16c056b15 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/rss.js.coffee @@ -23,7 +23,7 @@ class App.DashboardRss extends App.Controller App.Com.ajax( id: 'dashboard_rss' type: 'GET' - url: '/api/rss_fetch' + url: 'api/rss_fetch' data: { limit: 8 url: 'http://www.heise.de/newsticker/heise-atom.xml' diff --git a/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee b/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee index 976f7fe8b..16beced60 100644 --- a/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee +++ b/app/assets/javascripts/app/controllers/_dashboard/ticket.js.coffee @@ -32,7 +32,7 @@ class App.DashboardTicket extends App.Controller App.Com.ajax( id: 'dashboard_ticket_' + @key, type: 'GET', - url: '/api/ticket_overviews', + url: 'api/ticket_overviews', data: { view: @view, view_mode: 'd', diff --git a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee index 377182fd2..002b33baa 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.js.coffee @@ -51,7 +51,7 @@ class Index extends App.Controller App.Com.ajax( id: 'ticket_create' type: 'GET' - url: '/api/ticket_create' + url: 'api/ticket_create' data: ticket_id: params.ticket_id article_id: params.article_id diff --git a/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee index 3c9fce71c..95b2a59a1 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_history.js.coffee @@ -12,7 +12,7 @@ class App.TicketHistory extends App.ControllerModal App.Com.ajax( id: 'ticket_history', type: 'GET', - url: '/api/ticket_history/' + ticket_id, + url: 'api/ticket_history/' + ticket_id, success: (data, status, xhr) => # remember ticket @ticket = data.ticket diff --git a/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee index 09a91c138..39f655111 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_merge.js.coffee @@ -9,7 +9,7 @@ class App.TicketMerge extends App.ControllerModal App.Com.ajax( id: 'ticket_merge_list', type: 'GET', - url: '/api/ticket_merge_list/' + @ticket_id, + url: 'api/ticket_merge_list/' + @ticket_id, data: { # view: @view } @@ -107,7 +107,7 @@ class App.TicketMerge extends App.ControllerModal App.Com.ajax( id: 'ticket_merge', type: 'GET', - url: '/api/ticket_merge/' + @ticket_id + '/' + params['master_ticket_number'], + url: 'api/ticket_merge/' + @ticket_id + '/' + params['master_ticket_number'], data: { # view: @view } diff --git a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee index 4b5f861a7..21cc3f1ba 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_view.js.coffee @@ -44,7 +44,7 @@ class Index extends App.Controller App.Com.ajax( id: 'ticket_overview_' + @key, type: 'GET', - url: '/api/ticket_overviews', + url: 'api/ticket_overviews', data: { view: @view, view_mode: @view_mode, @@ -524,7 +524,7 @@ class Router extends App.Controller else App.Com.ajax( type: 'GET' - url: '/api/ticket_overviews' + url: 'api/ticket_overviews' data: view: @view array: true diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index d600c5205..b967e75c2 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -39,7 +39,7 @@ class Index extends App.Controller App.Com.ajax( id: 'ticket_zoom' type: 'GET' - url: '/api/ticket_full/' + ticket_id + url: 'api/ticket_full/' + ticket_id data: view: @view processData: true diff --git a/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee b/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee index 9dc1149aa..743883970 100644 --- a/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee +++ b/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee @@ -39,7 +39,7 @@ class Index extends App.Controller App.Com.ajax( id: 'ticket_create', type: 'GET', - url: '/api/ticket_create', + url: 'api/ticket_create', data: { ticket_id: params.ticket_id, article_id: params.article_id, diff --git a/app/assets/javascripts/app/controllers/getting_started.js.coffee b/app/assets/javascripts/app/controllers/getting_started.js.coffee index 5636b3ebf..96c069021 100644 --- a/app/assets/javascripts/app/controllers/getting_started.js.coffee +++ b/app/assets/javascripts/app/controllers/getting_started.js.coffee @@ -24,7 +24,7 @@ class Index extends App.Controller App.Com.ajax( id: 'getting_started', type: 'GET', - url: '/api/getting_started', + url: 'api/getting_started', data: { # view: @view, } diff --git a/app/assets/javascripts/app/controllers/link_info_widget.js.coffee b/app/assets/javascripts/app/controllers/link_info_widget.js.coffee index 9458943ea..42aec038e 100644 --- a/app/assets/javascripts/app/controllers/link_info_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/link_info_widget.js.coffee @@ -16,7 +16,7 @@ class App.LinkInfo extends App.Controller App.Com.ajax( id: 'links_' + @object.id + '_' + @object_type, type: 'GET', - url: '/api/links', + url: 'api/links', data: { link_object: @object_type, link_object_value: @object.id, @@ -85,7 +85,7 @@ class App.LinkInfo extends App.Controller App.Com.ajax( id: 'links_remove_' + @object.id + '_' + @object_type, type: 'GET', - url: '/api/links/remove', + url: 'api/links/remove', data: { link_type: link_type, link_object_source: link_object_source, @@ -129,7 +129,7 @@ class App.LinkAdd extends App.ControllerModal App.Com.ajax( id: 'links_add_' + @object.id + '_' + @object_type, type: 'GET', - url: '/api/links/add', + url: 'api/links/add', data: { link_type: params['link_type'], link_object_target: 'Ticket', diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index 443dd05af..d11d7427a 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -74,7 +74,7 @@ class App.Navigation extends App.Controller App.Com.ajax( id: 'ticket_search' type: 'GET' - url: '/api/tickets/search' + url: 'api/tickets/search' data: term: @term processData: true, diff --git a/app/assets/javascripts/app/controllers/package.js.coffee b/app/assets/javascripts/app/controllers/package.js.coffee index 1556e1fe0..bc174fab8 100644 --- a/app/assets/javascripts/app/controllers/package.js.coffee +++ b/app/assets/javascripts/app/controllers/package.js.coffee @@ -16,7 +16,7 @@ class Index extends App.Controller App.Com.ajax( id: 'packages', type: 'GET', - url: '/api/packages', + url: 'api/packages', processData: true, success: (data) => @render(data) @@ -51,7 +51,7 @@ class Index extends App.Controller App.Com.ajax( id: 'packages', type: httpType, - url: '/api/packages', + url: 'api/packages', data: JSON.stringify( { id: id } ), processData: false, success: (data) => diff --git a/app/assets/javascripts/app/controllers/reset_password.js.coffee b/app/assets/javascripts/app/controllers/reset_password.js.coffee index c2fb191b9..0f0cf7a8e 100644 --- a/app/assets/javascripts/app/controllers/reset_password.js.coffee +++ b/app/assets/javascripts/app/controllers/reset_password.js.coffee @@ -48,7 +48,7 @@ class Index extends App.Controller App.Com.ajax( id: 'password_reset' type: 'POST' - url: '/api/users/password_reset' + url: 'api/users/password_reset' data: JSON.stringify(params) processData: true success: @success @@ -88,7 +88,7 @@ class Verify extends App.Controller App.Com.ajax( id: 'password_reset_verify' type: 'POST' - url: '/api/users/password_reset_verify' + url: 'api/users/password_reset_verify' data: JSON.stringify(params) processData: true success: @render_success @@ -124,7 +124,7 @@ class Verify extends App.Controller App.Com.ajax( id: 'password_reset_verify' type: 'POST' - url: '/api/users/password_reset_verify' + url: 'api/users/password_reset_verify' data: JSON.stringify(params) processData: true success: @render_changed_success diff --git a/app/assets/javascripts/app/controllers/tag_widget.js.coffee b/app/assets/javascripts/app/controllers/tag_widget.js.coffee index bb84f6337..59ee23193 100644 --- a/app/assets/javascripts/app/controllers/tag_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/tag_widget.js.coffee @@ -9,7 +9,7 @@ class App.TagWidget extends App.Controller App.Com.ajax( id: 'tags_' + @object.id + '_' + @object_type type: 'GET' - url: '/api/tags' + url: 'api/tags' data: object: @object_type o_id: @object.id @@ -38,7 +38,7 @@ class App.TagWidget extends App.Controller onAddTag: (item) => App.Com.ajax( type: 'GET', - url: '/api/tags/add', + url: 'api/tags/add', data: object: @object_type, o_id: @object.id, @@ -51,7 +51,7 @@ class App.TagWidget extends App.Controller onRemoveTag: (item) => App.Com.ajax( type: 'GET' - url: '/api/tags/remove' + url: 'api/tags/remove' data: object: @object_type o_id: @object.id diff --git a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee index d2c97a5c3..1903b88fb 100644 --- a/app/assets/javascripts/app/lib/app_post/websocket.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/websocket.js.coffee @@ -245,7 +245,7 @@ class _Singleton extends App.Controller # call init request @_ajaxInitWorking = App.Com.ajax( type: 'POST' - url: '/api/message_send' + url: 'api/message_send' data: JSON.stringify({ data: { action: 'login' } }) processData: false queue: false @@ -276,7 +276,7 @@ class _Singleton extends App.Controller data = @queue.shift() App.Com.ajax( type: 'POST' - url: '/api/message_send' + url: 'api/message_send' data: JSON.stringify({ client_id: @client_id, data: data }) processData: false queue: true @@ -296,7 +296,7 @@ class _Singleton extends App.Controller App.Com.ajax( id: 'message_receive', type: 'POST' - url: '/api/message_receive' + url: 'api/message_receive' data: JSON.stringify({ client_id: @client_id }) processData: false success: (data) => diff --git a/app/assets/javascripts/app/models/channel.js.coffee b/app/assets/javascripts/app/models/channel.js.coffee index 8f7bb946b..0f1b0b9aa 100644 --- a/app/assets/javascripts/app/models/channel.js.coffee +++ b/app/assets/javascripts/app/models/channel.js.coffee @@ -1,4 +1,4 @@ class App.Channel extends App.Model @configure 'Channel', 'adapter', 'area', 'options', 'group_id', 'active' @extend Spine.Model.Ajax - @url: '/api/channels' + @url: 'api/channels' diff --git a/app/assets/javascripts/app/models/email_address.js.coffee b/app/assets/javascripts/app/models/email_address.js.coffee index b453252be..84fa09e2a 100644 --- a/app/assets/javascripts/app/models/email_address.js.coffee +++ b/app/assets/javascripts/app/models/email_address.js.coffee @@ -1,7 +1,7 @@ class App.EmailAddress extends App.Model @configure 'EmailAddress', 'realname', 'email', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/email_addresses' + @url: 'api/email_addresses' @configure_attributes = [ { name: 'realname', display: 'Realname', tag: 'input', type: 'text', limit: 250, 'null': false, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/group.js.coffee b/app/assets/javascripts/app/models/group.js.coffee index 9161cd447..ffc502f99 100644 --- a/app/assets/javascripts/app/models/group.js.coffee +++ b/app/assets/javascripts/app/models/group.js.coffee @@ -1,7 +1,7 @@ class App.Group extends App.Model @configure 'Group', 'name', 'assignment_timeout', 'follow_up_possible', 'follow_up_assignment', 'email_address_id', 'signature_id', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/groups' + @url: 'api/groups' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/organization.js.coffee b/app/assets/javascripts/app/models/organization.js.coffee index 90fab6549..6206127c9 100644 --- a/app/assets/javascripts/app/models/organization.js.coffee +++ b/app/assets/javascripts/app/models/organization.js.coffee @@ -1,7 +1,7 @@ class App.Organization extends App.Model @configure 'Organization', 'name', 'shared', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/organizations' + @url: 'api/organizations' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, { name: 'shared', display: 'Shared organiztion', tag: 'boolean', note: 'Customers in the organiztion can view each other items.', type: 'boolean', 'default': true, 'null': false, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/overview.js.coffee b/app/assets/javascripts/app/models/overview.js.coffee index 7226dab9c..98f26fdfe 100644 --- a/app/assets/javascripts/app/models/overview.js.coffee +++ b/app/assets/javascripts/app/models/overview.js.coffee @@ -1,7 +1,7 @@ class App.Overview extends Spine.Model @configure 'Overview', 'name', 'meta', 'condition', 'order', 'group_by', 'view', 'user_id', 'group_ids' @extend Spine.Model.Ajax - @url: '/api/overviews' + @url: 'api/overviews' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, { name: 'role_id', display: 'Role', tag: 'select', multiple: false, nulloption: true, null: false, relation: 'Role', class: 'span4' }, diff --git a/app/assets/javascripts/app/models/postmaster_filter.js.coffee b/app/assets/javascripts/app/models/postmaster_filter.js.coffee index e635f7571..cb3e4b9d9 100644 --- a/app/assets/javascripts/app/models/postmaster_filter.js.coffee +++ b/app/assets/javascripts/app/models/postmaster_filter.js.coffee @@ -1,7 +1,7 @@ class App.PostmasterFilter extends App.Model @configure 'PostmasterFilter', 'name', 'channel', 'match', 'perform', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/postmaster_filters' + @url: 'api/postmaster_filters' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 250, 'null': false, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/role.js.coffee b/app/assets/javascripts/app/models/role.js.coffee index 07956e009..4b677a429 100644 --- a/app/assets/javascripts/app/models/role.js.coffee +++ b/app/assets/javascripts/app/models/role.js.coffee @@ -1,7 +1,7 @@ class App.Role extends App.Model @configure 'Role', 'name', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/roles' + @url: 'api/roles' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, { name: 'note', display: 'Note', tag: 'textarea', note: 'Notes are visible to agents only, never to customers.', limit: 250, 'null': true, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/setting.js.coffee b/app/assets/javascripts/app/models/setting.js.coffee index 388c6eda9..ac35d5944 100644 --- a/app/assets/javascripts/app/models/setting.js.coffee +++ b/app/assets/javascripts/app/models/setting.js.coffee @@ -1,4 +1,4 @@ class App.Setting extends App.Model @configure 'Setting', 'name', 'state' @extend Spine.Model.Ajax - @url: '/api/settings' + @url: 'api/settings' diff --git a/app/assets/javascripts/app/models/signature.js.coffee b/app/assets/javascripts/app/models/signature.js.coffee index 401d5b1f6..319e2e54b 100644 --- a/app/assets/javascripts/app/models/signature.js.coffee +++ b/app/assets/javascripts/app/models/signature.js.coffee @@ -1,7 +1,7 @@ class App.Signature extends App.Model @configure 'Signature', 'name', 'body', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/signatures' + @url: 'api/signatures' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/template.js.coffee b/app/assets/javascripts/app/models/template.js.coffee index ef36c46fb..059043519 100644 --- a/app/assets/javascripts/app/models/template.js.coffee +++ b/app/assets/javascripts/app/models/template.js.coffee @@ -1,4 +1,4 @@ class App.Template extends App.Model @configure 'Template', 'name', 'options', 'group_ids', 'user_id' @extend Spine.Model.Ajax - @url: '/api/templates' + @url: 'api/templates' diff --git a/app/assets/javascripts/app/models/text_module.js.coffee b/app/assets/javascripts/app/models/text_module.js.coffee index 7af4d6eb0..1860ef843 100644 --- a/app/assets/javascripts/app/models/text_module.js.coffee +++ b/app/assets/javascripts/app/models/text_module.js.coffee @@ -1,7 +1,7 @@ class App.TextModule extends App.Model @configure 'TextModule', 'name', 'keywords', 'content', 'active', 'group_ids', 'user_id' @extend Spine.Model.Ajax - @url: '/api/text_modules' + @url: 'api/text_modules' @configure_attributes = [ { name: 'name', display: 'Name', tag: 'input', type: 'text', limit: 100, 'null': false, 'class': 'span4' }, { name: 'keywords', display: 'Keywords', tag: 'input', type: 'text', limit: 100, 'null': true, 'class': 'span4' }, diff --git a/app/assets/javascripts/app/models/ticket.js.coffee b/app/assets/javascripts/app/models/ticket.js.coffee index f311ae2aa..58a953875 100644 --- a/app/assets/javascripts/app/models/ticket.js.coffee +++ b/app/assets/javascripts/app/models/ticket.js.coffee @@ -1,7 +1,7 @@ class App.Ticket extends App.Model @configure 'Ticket', 'number', 'title', 'group_id', 'owner_id', 'customer_id', 'ticket_state_id', 'ticket_priority_id', 'article', 'tags' @extend Spine.Model.Ajax - @url: '/api/tickets' + @url: 'api/tickets' @configure_attributes = [ { name: 'number', display: '#', tag: 'input', type: 'text', limit: 100, null: true, read_only: true, style: 'width: 8%' }, { name: 'customer_id', display: 'Customer', tag: 'input', type: 'text', limit: 100, null: false, class: 'span8', autocapitalize: false, help: 'Select the customer of the Ticket or create one.', link: '»' }, diff --git a/app/assets/javascripts/app/models/ticket_article.js.coffee b/app/assets/javascripts/app/models/ticket_article.js.coffee index 63e80c292..4d8cd6905 100644 --- a/app/assets/javascripts/app/models/ticket_article.js.coffee +++ b/app/assets/javascripts/app/models/ticket_article.js.coffee @@ -1,7 +1,7 @@ class App.TicketArticle extends App.Model @configure 'TicketArticle', 'from', 'to', 'cc', 'subject', 'body', 'ticket_id', 'ticket_article_type_id', 'ticket_article_sender_id', 'internal', 'in_reply_to', 'form_id' @extend Spine.Model.Ajax - @url: '/api/ticket_articles' + @url: 'api/ticket_articles' @configure_attributes = [ { name: 'ticket_id', display: 'TicketID', null: false, readonly: 1, }, { name: 'from', display: 'From', tag: 'input', type: 'text', limit: 100, null: false, class: 'span8', }, diff --git a/app/assets/javascripts/app/models/ticket_priority.js.coffee b/app/assets/javascripts/app/models/ticket_priority.js.coffee index 3dbd45075..5944b8a92 100644 --- a/app/assets/javascripts/app/models/ticket_priority.js.coffee +++ b/app/assets/javascripts/app/models/ticket_priority.js.coffee @@ -1,4 +1,4 @@ class App.TicketPriority extends App.Model @configure 'TicketPriority', 'name', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/ticket_priorities' + @url: 'api/ticket_priorities' diff --git a/app/assets/javascripts/app/models/ticket_state.js.coffee b/app/assets/javascripts/app/models/ticket_state.js.coffee index 7b192055f..41e1ee2ca 100644 --- a/app/assets/javascripts/app/models/ticket_state.js.coffee +++ b/app/assets/javascripts/app/models/ticket_state.js.coffee @@ -1,4 +1,4 @@ class App.TicketState extends App.Model @configure 'TicketState', 'name', 'note', 'active' @extend Spine.Model.Ajax - @url: '/api/ticket_states' + @url: 'api/ticket_states' diff --git a/app/assets/javascripts/app/models/user.js.coffee b/app/assets/javascripts/app/models/user.js.coffee index d11c67066..dd92b74e6 100644 --- a/app/assets/javascripts/app/models/user.js.coffee +++ b/app/assets/javascripts/app/models/user.js.coffee @@ -1,7 +1,7 @@ class App.User extends App.Model @configure 'User', 'login', 'firstname', 'lastname', 'email', 'web', 'password', 'phone', 'fax', 'mobile', 'street', 'zip', 'city', 'country', 'organization_id', 'department', 'note', 'role_ids', 'group_ids', 'active', 'invite' @extend Spine.Model.Ajax - @url: '/api/users' + @url: 'api/users' # @hasMany 'roles', 'App.Role' @configure_attributes = [ diff --git a/app/assets/javascripts/app/views/agent_ticket_zoom.jst.eco b/app/assets/javascripts/app/views/agent_ticket_zoom.jst.eco index a5251580a..aec0b789c 100644 --- a/app/assets/javascripts/app/views/agent_ticket_zoom.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_zoom.jst.eco @@ -35,7 +35,7 @@
@@ -63,7 +63,7 @@ <% if article.attachments: %>
<% for attachment in article.attachments: %> - <%= attachment.filename %> + <%= attachment.filename %> <% end %>
<% end %> diff --git a/app/assets/javascripts/app/views/package.jst.eco b/app/assets/javascripts/app/views/package.jst.eco index 0b60c44d6..e16c6acc1 100644 --- a/app/assets/javascripts/app/views/package.jst.eco +++ b/app/assets/javascripts/app/views/package.jst.eco @@ -11,7 +11,7 @@ -->

-

+