feature - members page done. search not working and transition to member page not working
This commit is contained in:
21
index.php
21
index.php
@ -40,16 +40,15 @@
|
||||
</main>
|
||||
|
||||
<!-- This is a hack : https://git.happy-dev.fr/happy-dev/xmpp-chat-component/issues/24 -->
|
||||
<hd-chat-window
|
||||
id="chat-singleton"
|
||||
data-authentication="anonymous"
|
||||
data-auto-login="true"
|
||||
data-bosh-service-url="https://conversejs.org/http-bind/"
|
||||
data-debug="false"
|
||||
data-jid="nomnom.im"
|
||||
data-locales-url="<?php echo $cdn; ?>/node_modules/converse.js/locale/{{{locale}}}/LC_MESSAGES/converse.json",
|
||||
data-room-jid="anonymous@conference.nomnom.im">
|
||||
</hd-chat-window>
|
||||
<sib-chat
|
||||
data-src="https://djangoldp.happy-dev.fr/users/1"
|
||||
data-authentication="login"
|
||||
data-auto-login="true"
|
||||
data-bosh-service-url="http://jabber.happy-dev.fr/http-bind/" // FIXME: make HTTPS
|
||||
data-debug="false"
|
||||
data-locales-url="node_modules/converse.js/locale/{{{locale}}}/LC_MESSAGES/converse.json">
|
||||
</sib-chat>
|
||||
|
||||
<script>
|
||||
// Store url on load
|
||||
var currentRoute = getCurrentRoute();
|
||||
@ -78,7 +77,7 @@
|
||||
currentRoute += "-chat";
|
||||
}
|
||||
var currentView = document.querySelector("#" + currentRoute);
|
||||
if (currentView.querySelector("hd-chat-window") == null) {
|
||||
if (currentView.querySelector("sib-chat") == null) {
|
||||
currentView.appendChild(chatSingleton);
|
||||
currentView.style.display = 'block';
|
||||
}
|
||||
|
Reference in New Issue
Block a user