{ requires = ( MAIN, CommonUI, Contacts, MailerUI, ContactsUI ); publicResources = ( "title_sortdown_12x12.png", "title_sortup_12x12.png", "mailercontacts.js" ); factories = { }; categories = { SOGoContactFolder = { slots = { toolbar = { protectedBy = "View"; value = ( /* the toolbar groups */ ( /* first group */ { link = "#"; // no-op cssClass = "tbicon_getmail"; label = "Get Mail"; }, { link = "tb.new"; // onclick = "clickedNewContact(this);return false;"; cssClass = "tbicon_compose"; label = "New Contact"; target = "_blank"; }, /* enable if we actually can do that { link = "tb.compose"; target = "_blank"; cssClass = "tbicon_compose"; label = "Write"; }, */ ), ); }; }; methods = { "tb.view" = { /* primary entry for mailer actions */ protectedBy = "View"; pageName = "UIxMailContactList"; }; "tb.tableview" = { /* same like above without the frame */ protectedBy = "View"; pageName = "UIxMailContactListPart"; }; "tb.compose" = { protectedBy = "View"; actionClass = "UIxMailEditorAction"; actionName = "compose"; }; "tb.new" = { protectedBy = "View"; pageName = "UIxMailContactEditor"; actionName = "new"; }; }; }; SOGoContactObject = { slots = { toolbar = { protectedBy = "View"; value = ( /* the toolbar groups */ ( /* first group */ { link = "#"; onclick = "clickedEditorSave(this);return false;"; cssClass = "tbicon_save"; label = "Save"; }, { link = "#"; onclick = "clickedEditorDelete(this);return false;"; cssClass = "tbicon_delete"; label = "Delete"; }, ) ); }; }; methods = { "tb.edit" = { protectedBy = "View"; pageName = "UIxMailContactEditor"; }; }; }; }; }