-
+{{if ! $eid}}
+{{include file="field_checkbox.tpl" field=$share}}
+{{/if}}
{{$acl}}
diff --git a/view/templates/event_head.tpl b/view/templates/event_head.tpl
index de5ad6070c..0c015f4bf8 100644
--- a/view/templates/event_head.tpl
+++ b/view/templates/event_head.tpl
@@ -21,6 +21,14 @@
$('#event-edit-preview').val(0);
}
+ // disable the input for the finish date if it is not available
+ function enableDisableFinishDate() {
+ if( $('#id_nofinish').is(':checked'))
+ $('#id_finish_text').prop("disabled", true);
+ else
+ $('#id_finish_text').prop("disabled", false);
+ }
+
$(document).ready(function() {
$('#events-calendar').fullCalendar({
@@ -152,9 +160,9 @@
$("#comment-edit-text-desc").bbco_autocomplete('bbcode');
{{/if}}
- $('#event-share-checkbox').change(function() {
+ $('#id_share').change(function() {
- if ($('#event-share-checkbox').is(':checked')) {
+ if ($('#id_share').is(':checked')) {
$('#acl-wrapper').show();
}
else {
@@ -175,6 +183,11 @@
}).trigger('change');
+ // disable the finish time input if the user disable it
+ $('body').change("#id_nofinish", function() {
+ enableDisableFinishDate()
+ }).trigger('change');
+
});
diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js
index f99946019a..d27048e2df 100644
--- a/view/theme/frio/js/modal.js
+++ b/view/theme/frio/js/modal.js
@@ -153,7 +153,7 @@ Dialog._load = function(url) {
*/
function loadModalTitle() {
// clear the text of the title
- //$("#modal-title").empty();
+ $("#modal-title").empty();
// hide the first element with the class "heading" of the modal body
$("#modal-body .heading").first().hide();
diff --git a/view/theme/frio/templates/event.tpl b/view/theme/frio/templates/event.tpl
index 380bc7cb14..27965bb590 100644
--- a/view/theme/frio/templates/event.tpl
+++ b/view/theme/frio/templates/event.tpl
@@ -11,7 +11,7 @@
-
-{{* The event edit navigation menu (text input, permissions, preview, filebrowser) *}}
-
- {{* Mark the first list entry as active because it is the first which is active after opening
- the modal. Changing of the activity status is done by js in event_head.tpl *}}
-