Use "route" helper to generate URLs in chat style

This commit is contained in:
Dmitriy Simushev 2014-09-04 12:26:18 +00:00
parent 6ceecb42aa
commit c207f0507d
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
jQuery(document).ready(function(){
Mibew.Application.start({
server: {
url: '{{mibewRoot}}/thread/update',
url: '{{route "chat_thread_update"}}',
requestsFrequency: {{frequency}}
},
page: {

View File

@ -8,7 +8,7 @@
{{/override}}
{{#override "message"}}
<form name="mailThreadForm" method="post" action="{{mibewRoot}}/chat/{{this.[chat.thread.id]}}/{{this.[chat.thread.token]}}/mail">
<form name="mailThreadForm" method="post" action="{{route "chat_user_mail_send" thread_id=this.[chat.thread.id] token=this.[chat.thread.token]}}">
<input type="hidden" name="style" value="{{styleName}}"/>
<input type="hidden" name="level" value="{{level}}"/>