fixevalidator
This commit is contained in:
0
templates/Home/docrest.html.twig
Normal file → Executable file
0
templates/Home/docrest.html.twig
Normal file → Executable file
4
templates/Home/home.html.twig
Normal file → Executable file
4
templates/Home/home.html.twig
Normal file → Executable file
@ -8,10 +8,6 @@
|
||||
{{ render(path("app_publish_sample",{id:1})) }}
|
||||
</div>
|
||||
|
||||
<div class="col col-md6">
|
||||
<h3>Chat #2</h3>
|
||||
{{ render(path("app_publish_sample",{id:2})) }}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div style="text-align:center">
|
||||
|
0
templates/Home/mail.html.twig
Normal file → Executable file
0
templates/Home/mail.html.twig
Normal file → Executable file
0
templates/Home/noperm.html.twig
Normal file → Executable file
0
templates/Home/noperm.html.twig
Normal file → Executable file
5
templates/Home/publishsample.html.twig
Normal file → Executable file
5
templates/Home/publishsample.html.twig
Normal file → Executable file
@ -15,7 +15,8 @@
|
||||
const eventSource = new EventSource("{{ mercure('chat-'~id)|escape('js') }}");
|
||||
|
||||
eventSource.onopen = function(e) {
|
||||
console.log("== ONOPEN");
|
||||
console.log("== ONOPEN chat"+id{{idwidget}});
|
||||
console.log("== SEND alive");
|
||||
sendMessage{{idwidget}}(channel,id{{idwidget}},{command: "alive"});
|
||||
};
|
||||
|
||||
@ -87,6 +88,8 @@
|
||||
|
||||
function send{{idwidget}}() {
|
||||
if($("#chat{{idwidget}} #pushmessage").val()) {
|
||||
console.log("SEND push")
|
||||
|
||||
sendMessage{{idwidget}}('chat',1,{command: "push", message:$("#chat{{idwidget}} #pushmessage").val()});
|
||||
$("#chat{{idwidget}} #pushmessage").val("");
|
||||
}
|
||||
|
Reference in New Issue
Block a user