rem: }  imageElement.setAttribute("src",dialog.srcInput.value);      imageElement.setAttribute("alt", dialog.altTextInput.value);    if ( dialog.customsizeRadio.checked && ( dialog.imagewidthInput.value.length > 0 ) && ( dialog.imageheightInput.value.length > 0 ) ) { setDimensions(); } else { imageElement.removeAttribute( "width" ); imageElement.removeAttribute( "height" ); }    if ( dialog.imagelrInput.value.length > 0 ) imageElement.setAttribute( "hspace", dialog.imagelrInput.value ); else imageElement.removeAttribute( "hspace" );  if ( dialog.imagetbInput.value.length > 0 ) imageElement.setAttribute( "vspace", dialog.imagetbInput.value ); else imageElement.removeAttribute( "vspace" );    if ( dialog.imageborderInput.value.length > 0 ) imageElement.setAttribute( "border", dialog.imageborderInput.value ); else imageElement.removeAttribute( "border" ); /* alignpopup = document.getElementById("image.alignType"); if ( alignpopup ) { alignpopup.getAttribute( "value", alignvalue ); dump( "popup value = " + alignvalue + "\n" ); if ( alignvalue == "at the bottom" ) imageElement.removeAttribute("align"); else imageElement.setAttribute("align", alignvalue ); } */   if (insertNew) {   editorShell.InsertElement(imageElement, true); }  return true; 
context: function onOK(){  if ( !imageType )   {  dump("alert *** please choose an image of typ gif, jpg or png.\n\n");  return false;  }  imageElement.setAttribute("src",dialog.srcInput.value);  // We must convert to "file:///" format else image doesn't load!    // TODO: we should confirm with user if no alt tag  imageElement.setAttribute("alt", dialog.altTextInput.value);    // set width if custom size and width is greater than 0  if ( dialog.customsizeRadio.checked      && ( dialog.imagewidthInput.value.length > 0 )     && ( dialog.imageheightInput.value.length > 0 ) )  {    setDimensions();  // width and height  }  else  {    imageElement.removeAttribute( "width" );    imageElement.removeAttribute( "height" );  }    // spacing attributes  if ( dialog.imagelrInput.value.length > 0 )    imageElement.setAttribute( "hspace", dialog.imagelrInput.value );  else    imageElement.removeAttribute( "hspace" );    if ( dialog.imagetbInput.value.length > 0 )    imageElement.setAttribute( "vspace", dialog.imagetbInput.value );  else    imageElement.removeAttribute( "vspace" );    // note this is deprecated and should be converted to stylesheets  if ( dialog.imageborderInput.value.length > 0 )    imageElement.setAttribute( "border", dialog.imageborderInput.value );  else    imageElement.removeAttribute( "border" );/*  alignpopup = document.getElementById("image.alignType");  if ( alignpopup )  {    alignpopup.getAttribute( "value", alignvalue );    dump( "popup value = " + alignvalue + "\n" );    if ( alignvalue == "at the bottom" )      imageElement.removeAttribute("align");    else      imageElement.setAttribute("align", alignvalue );  }*/  // handle insertion of new image  if (insertNew)  {    // 'true' means delete the selection before inserting    editorShell.InsertElement(imageElement, true);  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dd1fea4e79dd1eac8c26058ce95c469c8fa645eb/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js