aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/invite.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-04-22 10:07:17 +0200
committerMario Vavti <mario@mariovavti.com>2021-04-22 10:07:17 +0200
commit597f24ca492ee27cf6312759292a4ede24f89d96 (patch)
tree84561163af601af4ffb0906d22043a68da557221 /view/tpl/invite.tpl
parenteb793b160103bddab071ca7e91daf500ec262315 (diff)
downloadvolse-hubzilla-597f24ca492ee27cf6312759292a4ede24f89d96.tar.gz
volse-hubzilla-597f24ca492ee27cf6312759292a4ede24f89d96.tar.bz2
volse-hubzilla-597f24ca492ee27cf6312759292a4ede24f89d96.zip
invite: fix javascript issue
Diffstat (limited to 'view/tpl/invite.tpl')
-rw-r--r--view/tpl/invite.tpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/view/tpl/invite.tpl b/view/tpl/invite.tpl
index 2712cfee4..e51e8e87b 100644
--- a/view/tpl/invite.tpl
+++ b/view/tpl/invite.tpl
@@ -10,7 +10,7 @@
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
<pre>{{$ihave}}<br>{{$wehave}}</pre>
-
+
<div id="zai-re" style="visibility: hidden;">
<div class="zai_h0 fa"></div>
<pre id="zai-remsg"></pre>
@@ -25,13 +25,13 @@
<a id="zai-ax" href="javascript:;" class="zai_ax zai_b">check</a><br>
<hr>
- {{$inv_expire}}
+ {{$inv_expire}}
</div>
<hr>
<div class="">
- <div class="zai_h0">{{$subject_label}}
+ <div class="zai_h0">{{$subject_label}}
<span id="zai-subject">{{$subject}}</span>
</div>
@@ -48,7 +48,7 @@
<pre id="zai-due">
{{$due}}
</pre>
-
+
<div id="invite-submit-wrapper" class="form-group">
<button class="btn btn-primary btn-sm" type="submit" id="invite-submit" name="submit" value="{{$submit}}">{{$submit}}</button>
</div>
@@ -110,13 +110,13 @@
if (tao.zai.c2s.to=='') { return false; };
// tao.zai.c2s.lcc=$('.zai_lcc.zai_hi').text();
$.ajax({
- type: 'POST', url: 'invite',
+ type: 'POST', url: 'invite',
data: {
zaito: tao.zai.c2s.to,
zailcc: tao.zai.lccmy,
zaidurn: $('#zaiexpiren').val(),
zaidurq: $('input[name="zaiexpire"]:checked').val(),
- form_security_token: $("input[name='form_security_token']").val()
+ form_security_token: $("input[name='form_security_token']").val()
}
}).done( function(r) {
tao.zai.r = JSON.parse(r);
@@ -133,10 +133,10 @@
$('#zai-reon').val(JSON.stringify(tao.zai.reon));
});
function zaitx() {
- typeof(tao.zai.s[tao.zai.lccmy][tao.zai.itpl]) !== 'undefined'
+ typeof(tao.zai.s[tao.zai.lccmy]) !== 'undefined' && typeof(tao.zai.s[tao.zai.lccmy][tao.zai.itpl]) !== 'undefined'
? $('#zai-subject').text(decodeURIComponent(tao.zai.s[tao.zai.lccmy][tao.zai.itpl]))
: $('#zai-subject').text('Invitation');
- typeof(tao.zai.t[tao.zai.lccmy][tao.zai.itpl]) !== 'undefined'
+ typeof(tao.zai.t[tao.zai.lccmy]) !== 'undefined' && typeof(tao.zai.t[tao.zai.lccmy][tao.zai.itpl]) !== 'undefined'
? $('#zai-ims').text(decodeURIComponent(tao.zai.t[tao.zai.lccmy][tao.zai.itpl]))
: $('#zai-ims').text(' ');
}