]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1220 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 2 Nov 2007 16:07:34 +0000 (16:07 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Fri, 2 Nov 2007 16:07:34 +0000 (16:07 +0000)
Scripts/sogo-init.d-redhat
UI/Templates/MailerUI/UIxMailEditor.wox
UI/Templates/MailerUI/UIxMailToSelection.wox
UI/WebServerResources/UIxMailEditor.css
UI/WebServerResources/UIxMailEditor.js
UI/WebServerResources/UIxMailToSelection.js

index 63cd8e1c8b4b7884901ec0470809c426e0fc4405..1d1fd7a0ad1650b02c1aaa4a3c15a7675047ed07 100755 (executable)
@@ -86,12 +86,11 @@ case "$1" in
   stop)
        echo -n $"Stopping $DESC: "
        killproc $REAL_DAEMON && rm -f ${PIDFILE}*
-       echo "$NAME."
+       echo
        ;;
   restart|force-reload)
-       echo -n $"Restarting $DESC: "
+       echo $"Restarting $DESC: "
        $0 stop && sleep 2 && $0 start
-       echo "$NAME."
        ;;
   status)
        status $REAL_DAEMON
index bbc56eb074f5544b4cd379a875ea6ced8c115e09..87ed561392784275f39e27831670d80f22bbd205 100644 (file)
       <div class="addressListElement" id="subjectRow"
        ><span class="headerField"><var:string label:value="Subject"
            />:</span
-         ><span class="headerInput"
-         ><input name="subject"
+         >
+         <input name="subject"
            type="text"
            class="textField"
            var:value="subject"
-           /></span></div>
+           /></div>
     <!-- separator line --><hr/>
     </div>
     <textarea name="text" rows="30" var:value="text" />
index 7aa986ce354b8cd05950d43e0837d847d9b93e01..c33c588af3ed6b0152e7b2359c8db60b40e76985 100644 (file)
@@ -9,19 +9,21 @@
       var currentIndex = <var:string value="currentIndex" />;
     </script>
 
-    <div id="addressList"
+    <div class="addressList">
+    <table id="addressList" cellpadding="0" cellspacing="0"
+      ><tbody
       ><var:foreach list="addressLists" item="addressList"
         ><var:foreach list="addressList" item="address">
-          <div class="addressListElement" var:id="currentRowId">
-            <span class="headerField">
+          <tr class="addressListElement" var:id="currentRowId">
+            <td class="headerField">
             <var:popup name="currentPopUpId"
               list="headers"
               item="item"
               label:displayString="$item"
               selection="currentHeader"
               />
-            </span>
-            <span class="headerInput">
+            </td>
+            <td class="headerInput">
             <input var:id="currentAddressId"
               var:name="currentAddressId"
               class="textField"
               onfocus="addressFieldGotFocus(this);"
               onblur="addressFieldLostFocus(this);"
               />
-            </span>
-          </div>
+            </td>
+          </tr>
         </var:foreach>
       </var:foreach>
-      <div class="addressListElement" id="lastRow">
-        <span class="headerField">
+      <tr class="addressListElement" id="lastRow">
+        <td class="headerField">
         <var:popup name="currentPopUpId"
               const:disabled="1"
               list="headers"
               item="item"
               label:displayString="$item"
               />
-        </span>
-        <span class="headerInput">
-          <input onfocus="fancyAddRow(true,'');"
+        </td>
+        <td class="headerInput">
+          <span class="headerInput"><input onfocus="fancyAddRow(true,'');"
             readonly="1"
             type="text"
-            class="textField" />
-        </span>
-      </div>
+            class="textField" /></span>
+        </td>
+      </tr>
     <!--<var:if condition="isUIxDebugEnabled">
     <a href="#" onclick="checkAddresses();">check addresses</a>
   </var:if>-->
+    </tbody>
+    </table>
     </div>
     <span id="addr_addresses" style="display: none; visibility: hidden;"><var:foreach list="addressLists" item="addressList"><var:foreach list="addressList" item="address"><span var:id="address"><!-- Space! --></span></var:foreach></var:foreach></span>
   </container>
index 9863b23dd8dc7c1218d5248a750e6a6f7ef558e7..2ed30effb044479ddbb33e16d89d8cbd08470683 100644 (file)
@@ -17,25 +17,55 @@ DIV#addressList
   overflow-x: hidden;
 }
 
-SPAN.headerField
-{ line-height: 1.8em;
-  float: left;
-  clear: left;
-  text-align: right;
-  min-width: 7em;
-  padding-left: 0.5em; }
+DIV.addressList
+{ margin: 5px; }
+
+TABLE#addressList
+{ border: 1px solid #333;
+  border-bottom: 1px solid #aaa;
+  border-right: 1px solid #ccc;
+  border-spacing: 0px;
+  margin: 0px;
+  padding: 0px;
+  width: 100%; }
 
-SPAN.headerInput INPUT
-{ padding-left: 24px; /* offset text input */
-  padding-right: 4px;
-  background-image: url('/SOGo.woa/WebServerResources/abcard.gif');
+TABLE#addressList TD
+{ background-color: #fff;
+  border: 0px;
+  border-bottom: 1px solid #C4C8FF;
+  margin: 0px;
+  padding: 1px; }
+
+TABLE#addressList TD.headerField
+{ border-right: 1px solid #C4C8FF; 
+  width: 110px; }
+
+TABLE#addressList TD.headerField SELECT
+{ border: 1px solid #eee; }
+
+TABLE#addressList TD.headerInput
+{ background-image: url('/SOGo.woa/WebServerResources/abcard.gif');
   background-repeat: no-repeat;
-  background-position: 2px center; }
+  background-position: 2px center;
+  padding-left: 24px;
+  padding-right: 4px; }
+
+TABLE#addressList TD.headerInput INPUT
+{ border: 0px;
+  margin: 0px;
+  padding: 0px;
+  width: 100%; }
+
+SPAN.headerField
+{ line-height: 2.0em;
+  padding-left: 0.5em; }
 
 DIV#subjectRow INPUT
 { background-image: none;
-  padding-left: 4px; /* offset text input */
-  padding-right: 4px; }
+  width: 60%; }
+
+DIV#subjectRow SPAN.headerField
+{ float: left; }
 
 div#compose_internetmarker
 { padding:          8px;
@@ -46,15 +76,16 @@ div#compose_internetmarker
   border-style:     solid; }
 
 div#headerArea
-{ border-top: 1px solid #fff; }
+{ border-top: 1px solid #fff;
+  padding: 5px 0px; }
 
 div#attachmentsArea
 { display: none;
   float: right;
-  width: 12em;
+  width: 120px;
   height: 100%;
-  margin: 0px;
-  padding-right: 1em;
+  margin: auto;
+  padding-right: 5px;
   padding-left: 5px;
   border-left: 1px solid #888; }
 
index eef5415f0160817898696a19e3607cf6a1563566..080528170e44ecc58d950355c51c2a8be64a2044 100644 (file)
@@ -254,6 +254,9 @@ function initMailEditor() {
   if (listContent.length > 0)
     $("attachmentsArea").setStyle({ display: "block" });
 
+  var list = $("addressList");
+  TableKit.Resizable.init(list, {'trueResize' : true, 'keepWidth' : true});
+
   onWindowResize(null);
   Event.observe(window, "resize", onWindowResize);
   Event.observe(window, "beforeunload", onMailEditorClose);
@@ -314,38 +317,38 @@ function onWindowResize(event) {
   var textarea = document.pageform.text;
   var rowheight = (Element.getHeight(textarea) / textarea.rows);
   var headerarea = $("headerArea");
-
-  // Set textarea position
-  textarea.setStyle({ 'top': (headerarea.getHeight() + headerarea.offsetTop) + 'px' });
-
-  var textareaoffset = textarea.offsetTop;
-
-  // Resize the textarea (message content)
-  textarea.rows = Math.round((window.height() - textareaoffset) / rowheight);
   
   var attachmentsarea = $("attachmentsArea");
   var attachmentswidth = 0;
-  if (attachmentsarea.style.display)
+  if (attachmentsarea.style.display) {
     attachmentswidth = attachmentsarea.getWidth();
-  var subjectfield = $(document).getElementsByClassName('headerField',
-                                                       $('subjectRow'))[0];
-  var subjectinput = $(document).getElementsByClassName('textField',
-                                                       $('subjectRow'))[0];
-
+    // Resize of attachment list is b0rken under IE7
+//    fromfield = $(document).getElementsByClassName('headerField',
+//                                                headerarea)[0];
+//    $("attachments").setStyle({ height: (headerarea.getHeight() - fromfield.getHeight() - 10) + 'px' });
+  }
+//  var subjectfield = $(document).getElementsByClassName('headerField',
+//                                                     $('subjectRow'))[0];
+//  var subjectinput = $(document).getElementsByClassName('textField',
+//                                                     $('subjectRow'))[0];
+//
   // Resize subject field
-  subjectinput.setStyle({ width: (window.width()
-                                 - $(subjectfield).getWidth()
-                                 - attachmentswidth
-                                 - 4 - 30) + 'px' });
+//  subjectinput.setStyle({ width: (window.width()
+//                               - $(subjectfield).getWidth()
+//                               - attachmentswidth
+//                               - 4 - 30) + 'px' });
 
   // Resize address fields
   var addresslist = $('addressList');
-  var firstselect = document.getElementsByClassName('headerField', addresslist)[0];
-  var inputwidth = ($(this).width() - $(firstselect).getWidth()
-                   - attachmentswidth - 24 - 30);
-  var addresses = document.getElementsByClassName('textField', addresslist);
-  for (var i = 0; i < addresses.length; i++)
-    addresses[i].setStyle({ width: inputwidth + 'px' });
+  addresslist.setStyle({ width: ($(this).width() - attachmentswidth - 10) + 'px' });
+
+  // Set textarea position
+  textarea.setStyle({ 'top': (headerarea.getHeight() + headerarea.offsetTop) + 'px' });
+
+  var textareaoffset = textarea.offsetTop;
+
+  // Resize the textarea (message content)
+  textarea.rows = Math.round((window.height() - textareaoffset) / rowheight);
 }
 
 function onMailEditorClose(event) {
index a0cc0f3a57c9b1c33017816e68f6f04d1d2fa3c7..8c04320c01ef2bdc3ba548b6e4bb6b6c403f7f22 100644 (file)
@@ -94,7 +94,7 @@ function fancyAddRow(shouldEdit, text) {
       return;
     }
   }
-  addressList = $("addressList");
+  addressList = $("addressList").tBodies[0];
   lastChild = $("lastRow");
   
   currentIndex++;
@@ -104,7 +104,7 @@ function fancyAddRow(shouldEdit, text) {
   row.id = 'row_' + currentIndex;
 
   // select popup
-  var rowNodes = row.childNodesWithTag("span");
+  var rowNodes = row.childNodesWithTag("td");
   select = $(rowNodes[0]).childNodesWithTag("select")[0];
   select.name = 'popup_' + currentIndex;
 //   select.value = row.childNodesWithTag("span")[0].childNodesWithTag("select")[0].value;
@@ -153,7 +153,7 @@ function removeLastEditedRowIfEmpty() {
     var addresses = $('addr_addresses');
     addresses.removeChild(addr);
   }
-  addressList = $("addressList");
+  addressList = $("addressList").tBodies[0];
   senderRow = $("row_" + idx);
   addressList.removeChild(senderRow);
 }