Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117782231
D128.1775249216.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D128.1775249216.diff
View Options
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -3154,6 +3154,18 @@
}
};
+ // display the edit dialog, request 'new' action and pass the selected event
+ this.event_copy = function(event) {
+ if (event && event.id) {
+ var copy = $.extend(true, {}, event);
+ delete copy.id;
+ delete copy._id;
+ delete copy.created;
+ delete copy.changed;
+ event_edit_dialog('new', copy);
+ }
+ };
+
// show URL of the given calendar in a dialog box
this.showurl = function(calendar)
{
@@ -4234,6 +4246,7 @@
rcmail.register_command('calendar-showurl', function(){ cal.showurl(cal.calendars[cal.selected_calendar]); }, false);
rcmail.register_command('event-download', function(){ cal.event_download(cal.selected_event); }, true);
rcmail.register_command('event-sendbymail', function(p, obj, e){ cal.event_sendbymail(cal.selected_event, e); }, true);
+ rcmail.register_command('event-copy', function(){ cal.event_copy(cal.selected_event); }, true);
rcmail.register_command('event-history', function(p, obj, e){ cal.event_history_dialog(cal.selected_event); }, false);
// search and export events
diff --git a/plugins/calendar/skins/classic/templates/calendar.html b/plugins/calendar/skins/classic/templates/calendar.html
--- a/plugins/calendar/skins/classic/templates/calendar.html
+++ b/plugins/calendar/skins/classic/templates/calendar.html
@@ -122,6 +122,7 @@
<ul>
<li><roundcube:button command="event-download" label="download" classAct="active" /></li>
<li><roundcube:button command="event-sendbymail" label="send" classAct="active" /></li>
+ <li><roundcube:button command="event-copy" label="copy" classAct="active" /></li>
</ul>
</div>
diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html
--- a/plugins/calendar/skins/larry/templates/calendar.html
+++ b/plugins/calendar/skins/larry/templates/calendar.html
@@ -163,6 +163,7 @@
<ul id="eventoptionsmenu-menu" class="toolbarmenu" role="menu" aria-labelledby="aria-label-eventoptions">
<li role="menuitem"><roundcube:button command="event-download" label="download" classAct="active" /></li>
<li role="menuitem"><roundcube:button command="event-sendbymail" label="send" classAct="active" /></li>
+ <li role="menuitem"><roundcube:button command="event-copy" label="copy" classAct="active" /></li>
<roundcube:if condition="env:calendar_driver == 'kolab' && config:kolab_bonnie_api" />
<li role="menuitem"><roundcube:button command="event-history" type="link" label="calendar.eventhistory" classAct="active" /></li>
<roundcube:endif />
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 8:46 PM (15 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823018
Default Alt Text
D128.1775249216.diff (2 KB)
Attached To
Mode
D128: Add possibility to copy events
Attached
Detach File
Event Timeline