]> err.no Git - scalable-opengroupware.org/commitdiff
started editor, added sorting in tableview, added onclick
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 5 Oct 2004 16:20:51 +0000 (16:20 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Tue, 5 Oct 2004 16:20:51 +0000 (16:20 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@361 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Mailer/ChangeLog
SOGo/UI/Mailer/UIxMailEditor.wox
SOGo/UI/Mailer/UIxMailListView.m
SOGo/UI/Mailer/UIxMailListView.wox
SOGo/UI/Mailer/UIxMailToolbar.wox
SOGo/UI/Mailer/Version
SOGo/UI/Mailer/mailer.css
SOGo/UI/Mailer/mailer.js
SOGo/UI/Mailer/product.plist

index befb6164ee5cddb18f77fa5a3b1c6c59ae790c7d..3ee0984192f0f053f7b1eb5e1a6eed97026d842f 100644 (file)
@@ -1,5 +1,15 @@
 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
index 5ae767bca46d767a04366512b67c7b3db606553d..a422928bd1b2ec01638a439dad7cf4a3ff747a51 100644 (file)
   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" />
index 99736d0cd6dc7d3b50355c782b044f1268092eaa..1a15d3273f3341b51ee8a758414bad3aef090509 100644 (file)
   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 {
index 2554e2262960ce5ddbf1161f6a537ce400ac55d6..84a4dd4fb262706d6d898e52a31472d25463cdd2 100644 (file)
@@ -12,8 +12,8 @@
   <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:
index a625a2d45739741e8648a05717b03e0b01b648f1..09e715d848e20cc6ac7d343590490b2efc9351ad 100644 (file)
@@ -12,7 +12,8 @@
       <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>
index 78237daff645932d2dc39c82a83a2f6fffffed9c..8a19b3e3468cf58736fef0c8c36b3b6210ce79fe 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=22
+SUBMINOR_VERSION:=23
index 1c95da26d0d71419e3139eeb1f68f3441e734d25..5283a744f7a7c1ad6c199ef7e32fc26c7385ab60 100644 (file)
@@ -291,3 +291,6 @@ img.mailer_imagecontent {
 }
 pre.mailer_plaincontent { 
 }
+
+/* compose */
+
index 0edc186dd4bf9cb7ebe898a79b7c758a4b722a26..6236aa3d4ef9610df907bfd0fce1c95cd703509a 100644 (file)
@@ -19,7 +19,7 @@
 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")
@@ -41,3 +41,13 @@ function lowlightUid(sender, msguid) {
   // 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 */
+}
index 7c2732e48635f403491c78fe34170956840eabef..38b59e2f65f4935dd3ce0af9a25b80f6c8eee2f6 100644 (file)
                 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"; }
             )
           );
         };