aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-22 17:43:26 +0000
committerMario <mario@mariovavti.com>2021-04-22 17:43:26 +0000
commitc700a017a0feeaaf24e627cea5bd621042fb780c (patch)
treeb8d2309a4e3a19107fd7c64ea165895db2cb3c21
parentc19eb94c52f40777d0ffaf6b91a3fc2eaaf6910a (diff)
parent597f24ca492ee27cf6312759292a4ede24f89d96 (diff)
downloadvolse-hubzilla-c700a017a0feeaaf24e627cea5bd621042fb780c.tar.gz
volse-hubzilla-c700a017a0feeaaf24e627cea5bd621042fb780c.tar.bz2
volse-hubzilla-c700a017a0feeaaf24e627cea5bd621042fb780c.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-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(' ');
}