Skip to content

Commit 48b8d30

Browse files
committed
Update smalltalk.view
1 parent 0b92d57 commit 48b8d30

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/main/resources/themes/smalltalk.view

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
if (user) {
623623
$.ajax({
624624
type: "POST",
625-
url: "[%LINK:talk/start%]/"+ user
625+
url: "{%start_url%}/"+ user
626626
}).done(function( msg ) {});
627627
}
628628
else {
@@ -666,7 +666,7 @@
666666
function autoupdate() {
667667
if(!is_running) {
668668
is_running = true;
669-
$.getJSON( "[%LINK:talk/update%]/{%meeting_code%}/{%session_id%}", function(data) {
669+
$.getJSON( "{%meeting_update_url%}", function(data) {
670670
update(data);
671671
is_running = false;
672672
}).done(function( msg ) {
@@ -777,7 +777,7 @@
777777
$("#dialog_submit").click(function(){
778778
$.ajax({
779779
type: "POST",
780-
url: "[%LINK:talk/start%]/"+ $("#nickname").val()
780+
url: "{%start_url%}/"+ $("#nickname").val()
781781
}).done(function( msg ) {
782782
$("#modal").modal('hide');
783783
user = $("#nickname").val();
@@ -789,7 +789,7 @@
789789
$("#topic_submit").click(function(){
790790
$.ajax({
791791
type: "POST",
792-
url: "[%LINK:talk/topic%]/",
792+
url: "[%LINK:talk/topic%]",
793793
data: {topic: $("#brief").val()}
794794
}).done(function( msg ) {
795795
$("#topic_modal").modal('hide');
@@ -808,9 +808,16 @@
808808
}
809809

810810
$("#link").click(function(){
811+
navigator.clipboard.writeText(this.innerText)
812+
.then(() => {
813+
console.log('Copied.');
814+
})
815+
.catch(err => {
816+
console.error('Failed to copy url:', err);
817+
});
811818
$.ajax({
812819
type: "POST",
813-
url: "[%LINK:talk/matrix%]/{%meeting_code%}",
820+
url: "{%meeting_qr_code_url%}",
814821
data: {meeting_code: "{%meeting_code%}"}
815822
}).done(function( msg ) {
816823
$("#matrix").css({"background":"url("+msg+") transparent center center"});
@@ -958,7 +965,7 @@
958965
</div>
959966
<form id="sender">
960967
<div class="note">Share the link to invite others join this conversation: <a id="link"
961-
href="javascript:void(0)">[%LINK:talk/join%]/{%meeting_code%}</a>
968+
href="javascript:void(0)">{%meeting_url%}</a>
962969
<div id="matrix"><img/><span>Click For QR Code</span></div>
963970
</div>
964971
<div class="pad">

0 commit comments

Comments
 (0)