$(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");
$("#event-preview").empty();
e.preventDefault();
});
-
});
// Load the html of the actual event and incect the output to the
}
-// This function load the content of the edit url into a modal.
-function eventEdit(url) {
- var char = qOrAmp(url);
- url = url + char + 'mode=none';
-
- $.get(url, function(data) {
- $("#modal-body").empty();
- $("#modal-body").append(data);
- }).done(function() {
- loadModalTitle();
- });
-}
-
-// 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();