mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-04 02:48:32 +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(){
|
jQuery(document).ready(function(){
|
||||||
Mibew.Application.start({
|
Mibew.Application.start({
|
||||||
server: {
|
server: {
|
||||||
url: '{{mibewRoot}}/thread/update',
|
url: '{{route "chat_thread_update"}}',
|
||||||
requestsFrequency: {{frequency}}
|
requestsFrequency: {{frequency}}
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{/override}}
|
{{/override}}
|
||||||
|
|
||||||
{{#override "message"}}
|
{{#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="style" value="{{styleName}}"/>
|
||||||
<input type="hidden" name="level" value="{{level}}"/>
|
<input type="hidden" name="level" value="{{level}}"/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user