Update of /var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups In directory james.mmbase.org:/tmp/cvs-serv5305/popups
Modified Files: insertinline_link.html Log Message: CMSC-681 Asset Maintenance An error happens then using richtext in IE See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups See also: http://www.mmbase.org/jira/browse/CMSC-681 Index: insertinline_link.html =================================================================== RCS file: /var/cvs/contributions/CMSContainer/cmsc/richtext/src/webapp/mmbase/edit/wizard/xinha/popups/insertinline_link.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -b -r1.8 -r1.9 --- insertinline_link.html 12 Jan 2009 10:46:06 -0000 1.8 +++ insertinline_link.html 19 Jan 2009 10:15:15 -0000 1.9 @@ -35,16 +35,18 @@ var param = window.dialogArguments; var target_select = document.getElementById("f_target"); var use_target = true; + if (param) { if ( typeof param["f_usetarget"] != "undefined" ) { use_target = param["f_usetarget"]; } if ( typeof param["f_href"] != "undefined" ) { document.getElementById("f_href").value = param["f_href"]; - document.getElementById("f_linkName").value = param["f_linkName"]; + document.getElementById("f_name").value = param["f_name"]; document.getElementById("f_title").value = param["f_title"]; document.getElementById("f_destination").value = param["f_destination"]; comboSelectValue(target_select, param["f_target"]); + if (target_select.value != param.f_target) { var opt = document.createElement("option"); opt.value = param.f_target; @@ -94,13 +96,13 @@ return false; } } - var tmpLinkName = document.getElementById("f_linkName"); + var tmpLinkName = document.getElementById("f_name"); if(!tmpLinkName.value){ // set the defult linkname the same as href's value tmpLinkName.value = elhref.value; } // pass data back to the calling window - var fields = ["f_href", "f_linkName","f_title", "f_target", "f_destination" ];//f_linkName is added by Rain.Tang + var fields = ["f_href", "f_name","f_title", "f_target", "f_destination" ];//f_name is added by Rain.Tang var param = new Object(); for (var i in fields) { var id = fields[i]; @@ -239,7 +241,7 @@ <!--Add by Rain.Tang ( --> <tr> <td class="label">Name of link:</td> - <td><input type="text" id="f_linkName" style="width: 100%" /></td> + <td><input type="text" id="f_name" style="width: 100%" /></td> </tr> <!-- ) --> <tr> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs