Author: jkoster
Date: 2009-05-20 12:05:39 +0200 (Wed, 20 May 2009)
New Revision: 35321
Modified:
CMSContainer/trunk/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/trunk/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
===================================================================
---
CMSContainer/trunk/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
2009-05-20 10:05:36 UTC (rev 35320)
+++
CMSContainer/trunk/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_image.html
2009-05-20 10:05:39 UTC (rev 35321)
@@ -1,14 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
-
<head>
<title>Insert Inline Image</title>
<script type="text/javascript" src="../../../../../js/window.js"></script>
<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) {
@@ -47,8 +45,8 @@
document.getElementById("f_align").disabled = true;
}
-
document.getElementById("f_url").focus();
+ window.resizeTo(450, 300);
}
function onOK() {
@@ -97,8 +95,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
@@ -218,8 +215,6 @@
</tbody>
</table>
- <p />
-
<fieldset style="float: left; margin-left: 5px;">
<legend>Layout</legend>
<div class="space"></div>
@@ -263,4 +258,4 @@
</div>
</form>
</body>
-</html>
+</html>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs