Merge branch 'master' of ssh://git.kolabsys.com/git/roundcube
This commit is contained in:
commit
0a1d413e50
2 changed files with 33 additions and 1 deletions
|
@ -298,6 +298,27 @@ function rcube_calendar_ui(settings)
|
||||||
*/
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//jquery-ui dialog for printing calendars - stub
|
||||||
|
var calendars_print_dialog = function(action, event)
|
||||||
|
{
|
||||||
|
var $dialog = $("#printcalendar");
|
||||||
|
$dialog.dialog({
|
||||||
|
modal: true,
|
||||||
|
resizable: true,
|
||||||
|
closeOnEscape: false,
|
||||||
|
title: rcmail.gettext('Print', 'calendar'),
|
||||||
|
close: function() {
|
||||||
|
$dialog.dialog("destroy").hide();
|
||||||
|
},
|
||||||
|
//buttons: buttons,
|
||||||
|
minWidth: 500,
|
||||||
|
width: 580
|
||||||
|
}).show();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// bring up the event dialog (jquery-ui popup)
|
// bring up the event dialog (jquery-ui popup)
|
||||||
var event_edit_dialog = function(action, event)
|
var event_edit_dialog = function(action, event)
|
||||||
{
|
{
|
||||||
|
@ -790,6 +811,13 @@ function rcube_calendar_ui(settings)
|
||||||
|
|
||||||
|
|
||||||
/*** public methods ***/
|
/*** public methods ***/
|
||||||
|
//public method to show the print dialog.
|
||||||
|
this.print_calendars = function() {
|
||||||
|
|
||||||
|
calendars_print_dialog('new');
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// public method to bring up the new event dialog
|
// public method to bring up the new event dialog
|
||||||
this.add_event = function() {
|
this.add_event = function() {
|
||||||
|
@ -1385,8 +1413,9 @@ function rcube_calendar_ui(settings)
|
||||||
/* calendar plugin initialization */
|
/* calendar plugin initialization */
|
||||||
window.rcmail && rcmail.addEventListener('init', function(evt) {
|
window.rcmail && rcmail.addEventListener('init', function(evt) {
|
||||||
|
|
||||||
// configure toobar buttons
|
// configure toolbar buttons
|
||||||
rcmail.register_command('addevent', function(){ cal.add_event(); }, true);
|
rcmail.register_command('addevent', function(){ cal.add_event(); }, true);
|
||||||
|
rcmail.register_command('print', function(){ cal.print_calendars(); }, true);
|
||||||
|
|
||||||
// configure list operations
|
// configure list operations
|
||||||
rcmail.register_command('calendar-create', function(){ cal.calendar_edit_dialog(null); }, true);
|
rcmail.register_command('calendar-create', function(){ cal.calendar_edit_dialog(null); }, true);
|
||||||
|
|
|
@ -204,6 +204,9 @@
|
||||||
<roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" />
|
<roundcube:button command="reset-search" id="searchreset" image="/images/icons/reset.gif" title="resetsearch" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="printcalendar">
|
||||||
|
Stub
|
||||||
|
</div>
|
||||||
<roundcube:object name="plugin.calendar_css" />
|
<roundcube:object name="plugin.calendar_css" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Add table
Reference in a new issue