Author: jkoster
Date: 2009-05-20 12:05:34 +0200 (Wed, 20 May 2009)
New Revision: 35319

Modified:
   
CMSContainer/branches/b1_5/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
Log:
CMSC-1407 - Alt-text does not get updated when new image is selected; also 
fixed the resizing of the window.

Modified: 
CMSContainer/branches/b1_5/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
===================================================================
--- 
CMSContainer/branches/b1_5/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
    2009-05-20 09:22:20 UTC (rev 35318)
+++ 
CMSContainer/branches/b1_5/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
    2009-05-20 10:05:34 UTC (rev 35319)
@@ -3,10 +3,9 @@
 <head>
   <title>Insert Inline Image</title>
   <script type="text/javascript" src="popup.js"></script>
-<link rel="stylesheet" type="text/css" href="popup.css" />
+  <link rel="stylesheet" type="text/css" href="popup.css" />
 
-  <script type="text/javascript">
-    window.resizeTo(450, 100);
+<script type="text/javascript">
 
 HTMLArea = window.opener.HTMLArea;
 function i18n(str) {
@@ -45,8 +44,8 @@
       document.getElementById("f_align").disabled = true;
   }
   
-  
   document.getElementById("f_url").focus();
+  window.resizeTo(450, 300);
 }
 
 function onOK() {
@@ -95,8 +94,7 @@
       document.getElementById("f_align").disabled = false;
       ratio = "";
    }
-   if (document.getElementById("f_alt").value == undefined 
-         || document.getElementById("f_alt").value.length == 0 ) {
+   if (title != undefined && title.length != 0) {
       document.getElementById("f_alt").value = title;
    }
    var imagePosition = document.getElementById("f_align").value
@@ -194,11 +192,8 @@
 
     return true;
 }
-
 </script>
 
-
-
 <script type="text/javascript">
    var width_orig = 1;
    var height_orig = 1;
@@ -249,8 +244,6 @@
               </tbody>
          </table>
 
-         <p />
-
          <fieldset style="float: left; margin-left: 5px;">
             <legend>Layout</legend>
             <div class="space"></div>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to