mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Use "route" helper to generate URLs in chat style
This commit is contained in:
parent
6ceecb42aa
commit
c207f0507d
@ -77,7 +77,7 @@
|
||||
jQuery(document).ready(function(){
|
||||
Mibew.Application.start({
|
||||
server: {
|
||||
url: '{{mibewRoot}}/thread/update',
|
||||
url: '{{route "chat_thread_update"}}',
|
||||
requestsFrequency: {{frequency}}
|
||||
},
|
||||
page: {
|
||||
|
@ -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}}"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user