forked from extern/egroupware
Fix calendar delete series event with exceptions
This commit is contained in:
parent
c3e673b747
commit
7a9378d0d7
@ -676,7 +676,47 @@ app.classes.calendar = AppJS.extend(
|
|||||||
|
|
||||||
if (exceptions)
|
if (exceptions)
|
||||||
{
|
{
|
||||||
$j(document.getElementById('calendar-edit_calendar-delete_series')).show();
|
var buttons = [
|
||||||
|
{
|
||||||
|
button_id: 'keep',
|
||||||
|
statustext:'All exceptions are converted into single events.',
|
||||||
|
text: 'Keep exceptions',
|
||||||
|
id: 'button[delete_keep_exceptions]',
|
||||||
|
image: 'keep', "default":true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
button_id: 'delete',
|
||||||
|
statustext:'The exceptions are deleted together with the series.',
|
||||||
|
text: 'Delete exceptions',
|
||||||
|
id: 'button[delete_exceptions]',
|
||||||
|
image: 'delete'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
button_id: 'cancel',
|
||||||
|
text: 'Cancel',
|
||||||
|
id: 'dialog[cancel]',
|
||||||
|
image: 'cancel'
|
||||||
|
}
|
||||||
|
|
||||||
|
];
|
||||||
|
var self = this;
|
||||||
|
et2_dialog.show_dialog
|
||||||
|
(
|
||||||
|
function(_button_id)
|
||||||
|
{
|
||||||
|
if (_button_id != 'dialog[cancel]')
|
||||||
|
{
|
||||||
|
self.et2._inst.submit(_button_id);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
this.egw.lang("Do you want to keep the series exceptions in your calendar?"),
|
||||||
|
this.egw.lang("This event is part of a series"), {}, buttons , et2_dialog.WARNING_MESSAGE
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else if (content['recur_type'] !== 0)
|
else if (content['recur_type'] !== 0)
|
||||||
{
|
{
|
||||||
|
@ -569,15 +569,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
|||||||
* edit series or exception popup used in eventWidget and
|
* edit series or exception popup used in eventWidget and
|
||||||
* delete series and exceptions popup used in edit event
|
* delete series and exceptions popup used in edit event
|
||||||
*/
|
*/
|
||||||
#calendar-edit_calendar-delete_series{
|
|
||||||
position: fixed;
|
|
||||||
top: 100px;
|
|
||||||
left: 200px;
|
|
||||||
z-index: 20000;
|
|
||||||
display: none;
|
|
||||||
border-collapse:collapse;
|
|
||||||
border-spacing:0px
|
|
||||||
}
|
|
||||||
#dialog-content {
|
#dialog-content {
|
||||||
display:block;
|
display:block;
|
||||||
height:100px;
|
height:100px;
|
||||||
|
@ -261,7 +261,6 @@
|
|||||||
<hbox align="center">
|
<hbox align="center">
|
||||||
<button statustext="All exceptions are converted into single events." label="Keep exceptions" id="button[delete_keep_exceptions]" image="keep" background_image="1"/>
|
<button statustext="All exceptions are converted into single events." label="Keep exceptions" id="button[delete_keep_exceptions]" image="keep" background_image="1"/>
|
||||||
<button statustext="The exceptions are deleted together with the series." label="Delete exceptions" id="button[delete_exceptions]" image="delete" background_image="1"/>
|
<button statustext="The exceptions are deleted together with the series." label="Delete exceptions" id="button[delete_exceptions]" image="delete" background_image="1"/>
|
||||||
<buttononly label="Cancel" onclick="jQuery(document.getElementById('calendar-edit_calendar-delete_series')).hide();"/>
|
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
@ -343,5 +342,6 @@
|
|||||||
<checkbox label="Do not notify" id="no_notifications"/>
|
<checkbox label="Do not notify" id="no_notifications"/>
|
||||||
<button align="right" statustext="Delete this event" label="Delete" id="button[delete]" onclick="app.calendar.delete_btn(widget,$cont[query_delete_exceptions]);" image="delete" background_image="1"/>
|
<button align="right" statustext="Delete this event" label="Delete" id="button[delete]" onclick="app.calendar.delete_btn(widget,$cont[query_delete_exceptions]);" image="delete" background_image="1"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
<template id="calendar.delete_series"/>
|
||||||
</template>
|
</template>
|
||||||
</overlay>
|
</overlay>
|
@ -11,7 +11,7 @@
|
|||||||
* @package calendar
|
* @package calendar
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
/* $Id: app.css 47104 2014-05-27 15:02:56Z hnategh $ */
|
/* $Id: app.css 47157 2014-06-04 07:32:17Z hnategh $ */
|
||||||
/* Header classes */
|
/* Header classes */
|
||||||
tr.dialogHeader td,
|
tr.dialogHeader td,
|
||||||
tr.dialogHeader2 td,
|
tr.dialogHeader2 td,
|
||||||
@ -576,15 +576,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
|||||||
* edit series or exception popup used in eventWidget and
|
* edit series or exception popup used in eventWidget and
|
||||||
* delete series and exceptions popup used in edit event
|
* delete series and exceptions popup used in edit event
|
||||||
*/
|
*/
|
||||||
#calendar-edit_calendar-delete_series {
|
|
||||||
position: fixed;
|
|
||||||
top: 100px;
|
|
||||||
left: 200px;
|
|
||||||
z-index: 20000;
|
|
||||||
display: none;
|
|
||||||
border-collapse: collapse;
|
|
||||||
border-spacing: 0px;
|
|
||||||
}
|
|
||||||
#dialog-content {
|
#dialog-content {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@ -1944,42 +1935,6 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
|||||||
* edit series or exception popup used in eventWidget and
|
* edit series or exception popup used in eventWidget and
|
||||||
* delete series and exceptions popup used in edit event
|
* delete series and exceptions popup used in edit event
|
||||||
*/
|
*/
|
||||||
#calendar-edit_calendar-delete_series {
|
|
||||||
position: fixed;
|
|
||||||
top: 200px;
|
|
||||||
left: 500px;
|
|
||||||
z-index: 20000;
|
|
||||||
display: none;
|
|
||||||
border-collapse: collapse;
|
|
||||||
border-spacing: 0px;
|
|
||||||
background-color: #fff;
|
|
||||||
/*.border_normal;*/
|
|
||||||
/*.box_shadow_standard_light;*/
|
|
||||||
/*.rounded (3px);*/
|
|
||||||
color: #000000;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
-webkit-transition-property: background-color;
|
|
||||||
-moz-transition-property: background-color;
|
|
||||||
-o-transition-property: background-color;
|
|
||||||
transition-property: background-color;
|
|
||||||
-webkit-transition-duration: 0.5s;
|
|
||||||
-moz-transition-duration: 0.5s;
|
|
||||||
-o-transition-duration: 0.5s;
|
|
||||||
transition-duration: 0.5s;
|
|
||||||
-webkit-transition-timing-function: linear;
|
|
||||||
-moz-transition-timing-function: linear;
|
|
||||||
-o-transition-timing-function: linear;
|
|
||||||
transition-timing-function: linear;
|
|
||||||
background-color: #b4b4b4;
|
|
||||||
}
|
|
||||||
#delete_series {
|
|
||||||
top: 100px;
|
|
||||||
left: 200px;
|
|
||||||
}
|
|
||||||
#delete_series input,
|
|
||||||
#edit_series input {
|
|
||||||
margin: 8px;
|
|
||||||
}
|
|
||||||
#dialog-content {
|
#dialog-content {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
@ -1383,24 +1383,7 @@ e.g. the div with class calendar_calTimeGrid is generated by the timeGridWidget
|
|||||||
* edit series or exception popup used in eventWidget and
|
* edit series or exception popup used in eventWidget and
|
||||||
* delete series and exceptions popup used in edit event
|
* delete series and exceptions popup used in edit event
|
||||||
*/
|
*/
|
||||||
#calendar-edit_calendar-delete_series {
|
|
||||||
position: fixed;
|
|
||||||
top: 200px;
|
|
||||||
left: 500px;
|
|
||||||
z-index: 20000;
|
|
||||||
display: none;
|
|
||||||
border-collapse:collapse;
|
|
||||||
border-spacing:0px;
|
|
||||||
background-color: #fff;
|
|
||||||
.Complete_Button_normal;
|
|
||||||
}
|
|
||||||
#delete_series {
|
|
||||||
top: 100px;
|
|
||||||
left: 200px;
|
|
||||||
}
|
|
||||||
#delete_series input,#edit_series input {
|
|
||||||
margin: 8px;
|
|
||||||
}
|
|
||||||
#dialog-content {
|
#dialog-content {
|
||||||
display:block;
|
display:block;
|
||||||
height:100px;
|
height:100px;
|
||||||
|
Loading…
Reference in New Issue
Block a user