X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Fjs%2Fevent_edit.js;h=a068b4fe0e53385f1898873e1d0618bb11f0d63c;hb=8536b313a1eb1c3e11f9ba5317fdcef33118bcb8;hp=da0837223a4af7754f4dc58a1d5937dab5334bad;hpb=c1699364aeab66032b1cbfb9e3effda784df28eb;p=friendica.git diff --git a/view/theme/frio/js/event_edit.js b/view/theme/frio/js/event_edit.js index da0837223a..a068b4fe0e 100644 --- a/view/theme/frio/js/event_edit.js +++ b/view/theme/frio/js/event_edit.js @@ -1,7 +1,7 @@ $(document).ready(function() { // Go to the permissions tab if the checkbox is checked. $('body').on("click", "#id_share", function() { - if ($('#id_share').is(':checked') && !( $('#id_share').attr("disabled"))) { + if ($('#id_share').is(':checked') && !( $('#id_share').attr("disabled"))) { $('#acl-wrapper').show(); $("a#event-perms-lnk").parent("li").show(); toggleEventNav("a#event-perms-lnk"); @@ -49,25 +49,6 @@ $(document).ready(function() { $("#event-preview").empty(); e.preventDefault(); }); - - // Construct a new ACL. We need this everytime the 'event-edit-form' is loaded - // without page reloading (e.g. closing an old modal and open a new modal). - // Otherwise we wouldn't get the ACL data. - /// @todo: Try to implement some kind of ACL reloading in acl.js. - if (typeof acl !== "undefined") { - var eventPerms = document.getElementById('event-edit-form'); - - acl = new ACL( - baseurl + "/acl", - [ - eventPerms.dataset.allow_cid, - eventPerms.dataset.allow_gid, - eventPerms.dataset.deny_cid, - eventPerms.dataset.deny_gid - ] - ); - } - }); // Load the html of the actual event and incect the output to the @@ -81,7 +62,7 @@ function doEventPreview() { } -// The following functions show/hide the specific event-edit content +// The following functions show/hide the specific event-edit content // in dependence of the selected nav. function eventAclActive() { $("#event-edit-wrapper, #event-preview, #event-desc-wrapper").hide();