aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-15 18:35:56 -0700
committerfriendica <info@friendica.com>2014-10-15 18:35:56 -0700
commitae9e1fa688c90e128637b5c44cf4705287f6cfa1 (patch)
tree7a91468e4f2948faa373471b018852a8b72e1545
parente80c20d2584e17b43dd456bbb4b3dc0f8c11eeb4 (diff)
downloadvolse-hubzilla-ae9e1fa688c90e128637b5c44cf4705287f6cfa1.tar.gz
volse-hubzilla-ae9e1fa688c90e128637b5c44cf4705287f6cfa1.tar.bz2
volse-hubzilla-ae9e1fa688c90e128637b5c44cf4705287f6cfa1.zip
missing event permissions
-rw-r--r--include/acl_selectors.php3
-rwxr-xr-xmod/events.php1
-rwxr-xr-xview/tpl/event_form.tpl3
-rwxr-xr-xview/tpl/event_head.tpl4
4 files changed, 7 insertions, 4 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 0b68ba227..3cdbd411c 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -248,7 +248,8 @@ function populate_acl($defaults = null,$show_jotnets = true) {
'$aclModalTitle' => t('Permissions'),
'$aclModalDismiss' => t('Close')
));
-
+
+ logger($o);
return $o;
diff --git a/mod/events.php b/mod/events.php
index c80d1dd39..d24f84d44 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -582,6 +582,7 @@ function events_content(&$a) {
'$t_orig' => $t_orig,
'$sh_text' => t('Share this event'),
'$sh_checked' => $sh_checked,
+ '$permissions' => t('Permissions'),
'$acl' => (($orig_event['event_xchan']) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $perm_defaults),false)),
'$submit' => t('Submit')
diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl
index 2a580e3b8..d91e44458 100755
--- a/view/tpl/event_form.tpl
+++ b/view/tpl/event_form.tpl
@@ -66,7 +66,8 @@
<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
<div id="event-share-break"></div>
-{{$acl}}
+<button id="event-permissions-button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$permissions}}</button>
+ {{$acl}}
<div class="clear"></div>
<input id="event-submit" type="submit" name="submit" value="{{$submit}}" />
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl
index 8388187d1..6f1d2f22c 100755
--- a/view/tpl/event_head.tpl
+++ b/view/tpl/event_head.tpl
@@ -115,10 +115,10 @@
$('#event-share-checkbox').change(function() {
if ($('#event-share-checkbox').is(':checked')) {
- $('#acl-wrapper').show();
+ $('#event-permissions-button').show();
}
else {
- $('#acl-wrapper').hide();
+ $('#event-permissions-button').hide();
}
}).trigger('change');