2004-10-05 Helge Hess <helge.hess@opengroupware.org>
+ * v0.9.23
+
+ * product.plist: fixed addressbook label
+
+ * UIxMailToolbar: added support for 'onclick' event handlers
+
+ * UIxMailEditor: started editor
+
+ * UIxMailListView.m: added sorting to table view
+
* v0.9.22
* UIxMailToolbar.wox: added support for 'target' links
title="name"
const:hideFolderTree="1"
>
+ <div id="compose_fromline">
+ From: abc
+ </div>
+
+ <div id="compose_toselection">
+ [repetition]<br />
+ <table border="0" width="100%">
+ <!-- TODO: make repetition -->
+ <!-- TODO: form field needs to have an index -->
+ <tr>
+ <td width="20%">
+ <!-- var:popup? -->
+ <select name="totype_00" style="width: 100%;">
+ <option value="to" >To:</option>
+ <option value="cc" >CC:</option>
+ <option value="bcc">BCC:</option>
+ </select>
+ </td>
+ <td width="80%">
+ <input name="email_00" type="text" style="width: 100%;"/>
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div id="compose_subject">
+ Subject:
+ <input name="subject" type="text" style="width: 80%;"/>
+ </div>
+
+ <!-- separate line -->
+ <textarea style="width:100%;" name="content" />
+
<h4>Mail Compose</h4>
<!-- a rsrc:href="tbird_073_compose.png">screenshot</a -->
<img rsrc:src="tbird_073_compose.png" alt="screenshot" />
NSString *sort;
sort = [[[self context] request] formValueForKey:@"sort"];
+ [self logWithFormat:@"sort by: %@", sort];
+
+ // TODO: reversed sorts
- return @"SUBJECT";
+ if ([sort length] == 0)
+ sort = @"SUBJECT";
+ return [sort uppercaseString];
}
- (NSRange)fetchRange {
<div class="titlediv">
<a rsrc:href="tbird_073_mailwelcome.png">View:</a>, <!-- TODO ;-) -->
<select name="viewfilter"> <!-- var:popup? -->
- <option value="all" >All</option>
- <option value="unread">Unread</option>
+ <option value="all" >All</option>
+ <option value="unread">Unread</option>
</select>
Subject or Sender contains:
<var:foreach list="toolbarGroup" item="buttonInfo">
<td class="tb_icon"
><a var:href="buttonInfo.link" var:target="buttonInfo.target"
- var:class="buttonInfo.cssClass"></a></td>
+ var:class="buttonInfo.cssClass"
+ var:onclick="buttonInfo.onclick"></a></td>
</var:foreach>
<td class="tb_spacer"> </td>
</var:foreach>
# $Id$
-SUBMINOR_VERSION:=22
+SUBMINOR_VERSION:=23
}
pre.mailer_plaincontent {
}
+
+/* compose */
+
function clickedUid(sender, msguid) {
var urlstr;
- urlstr = msguid + "/view?noframe=1&markread=1";
+ urlstr = msguid + "/view?markread=1";
window.open(urlstr, "SOGo_msg_" + msguid,
"width=680,height=480,resizable=1,scrollbars=1,toolbar=0," +
"location=0,directories=0,status=0,menubar=0,copyhistory=0")
// row.className="mailer_readmailsubject";
return true;
}
+
+function clickedCompose(sender) {
+ var urlstr;
+
+ urlstr = "compose";
+ window.open(urlstr, "SOGo_compose",
+ "width=680,height=480,resizable=1,scrollbars=1,toolbar=0," +
+ "location=0,directories=0,status=0,menubar=0,copyhistory=0");
+ return false; /* stop following the link */
+}
cssClass = "tbicon_getmail"; label = "Get Mail";
},
{
- link = "compose"; target = "_blank";
+ link = "#"; // "compose"; // target = "_blank";
+ onclick = "clickedCompose(this);return false;";
cssClass = "tbicon_compose"; label = "Write";
},
{
link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Write";
+ cssClass = "tbicon_addressbook"; label = "Addressbook";
}
),
( /* second group */
protectedBy = "View";
value = ( /* the toolbar groups */
( /* first group */
- {
- link = "getMail";
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
- {
- link = "compose"; target = "_blank";
- cssClass = "tbicon_compose"; label = "Write";
- },
- {
- link = "addressbook"; target = "addressbook";
- cssClass = "tbicon_addressbook"; label = "Write";
- }
+ { link = "getMail";
+ cssClass = "tbicon_getmail"; label = "Get Mail"; },
+ { link = "compose"; target = "_blank";
+ cssClass = "tbicon_compose"; label = "Write"; },
+ { link = "addressbook"; target = "addressbook";
+ cssClass = "tbicon_addressbook"; label = "Addressbook"; }
),
( /* second group */
{ link = "#";
protectedBy = "View";
value = ( /* the toolbar groups */
( /* first group */
- {
- link = "getMail";
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
+ { link = "getMail";
+ cssClass = "tbicon_getmail"; label = "Get Mail"; },
+ { link = "addressbook"; target = "addressbook";
+ cssClass = "tbicon_addressbook"; label = "Addressbook"; }
)
);
};
protectedBy = "View";
value = ( /* the toolbar groups */
( /* first group */
- {
- link = "getMail";
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
+ { link = "getMail";
+ cssClass = "tbicon_getmail"; label = "Get Mail"; },
+ { link = "addressbook"; target = "addressbook";
+ cssClass = "tbicon_addressbook"; label = "Addressbook"; }
)
);
};