* UI/WebServerResources/SchedulerUI.js (onMenuRawEvent, onMenuRawTask):

New callback to show the event/task content from the menu

  * UI/Scheduler/UIxComponentEditor.m (rawAction):
  New method that returns the object's raw content in a WOResponse.

  * UI/Templates/SchedulerUI/UIxCal{Day,Month,Main,Week}View.wox:
  New contextual menu item: Show Raw Source

  * UI/WebServerResources/ContactsUI.js (onMenuRawContact):
  Rework to use calendar/ics/raw

  * UI/Contacts/UIxContactFolderActions.m (rawAction):
  Removed / moved to UI/Contacts/UIxContactActions.m

  * UI/Contacts/UIxContactActions.m (rawAction):
  New method that returns the object's raw content in a WOResponse.

  * UI/Templates/ContactsUI/UIxContactFoldersView.wox:
  Show vCard content -> Show Raw Source

Monotone-Parent: e853157abbabf35bc95273da8bc10b2d3b142627
Monotone-Revision: 4e287287380938e20234ac951c09158c324b84b4

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-09T14:17:07
This commit is contained in:
Jean Raby
2012-07-09 14:17:07 +00:00
parent c4d11cd916
commit 71121914cf
17 changed files with 145 additions and 69 deletions
+6 -11
View File
@@ -291,17 +291,12 @@ function onMenuExportContact (event) {
}
function onMenuRawContact (event) {
var selectedFolders = $("contactFolders").getSelectedNodes();
var canExport = (selectedFolders[0].getAttribute("owner") != "nobody");
if (canExport) {
var selectedFolderId = $(selectedFolders[0]).readAttribute("id");
var contactIds = document.menuTarget.collect(function(row) {
return row.readAttribute("id");
});
var url = ApplicationBaseURL + selectedFolderId + "/raw"
+ "?uid=" + contactIds.join("&uid=");
openGenericWindow(url);
}
var cname = document.menuTarget.collect(function(row) {
return row.readAttribute("id");
});
openGenericWindow(URLForFolderID(Contact.currentAddressBook)
+ "/" + cname + "/raw");
}
function actionContactCallback(http) {