context: function InitDialog(){  // Set the controls to the image's attributes  var str = globalElement.getAttribute("src");  if (str)  {    dialog.srcInput.value = str;    GetImageFromURL();  }    str = globalElement.getAttribute("alt");  if (str)    dialog.altTextInput.value = str;    // setup the height and width widgets  var width = InitPixelOrPercentMenulist(globalElement,                     insertNew ? null : imageElement,                     "width", "widthUnitsMenulist", gPixel);  var height = InitPixelOrPercentMenulist(globalElement,                     insertNew ? null : imageElement,                     "height", "heightUnitsMenulist", gPixel);    // Set actual radio button if both set values are the same as actual  if (actualWidth && actualHeight)    dialog.actualSizeRadio.checked = (width == actualWidth) && (height == actualHeight);  else if ( !(width || height) )    dialog.actualSizeRadio.checked = true;  if (!dialog.actualSizeRadio.checked)    dialog.customSizeRadio.checked = true;    dialog.widthInput.value  = constrainWidth = width ? width : (actualWidth ? actualWidth : "");  dialog.heightInput.value = constrainHeight = height ? height : (actualHeight ? actualHeight : "");  // set spacing editfields  dialog.imagelrInput.value = globalElement.getAttribute("hspace");  dialog.imagetbInput.value = globalElement.getAttribute("vspace");  dialog.border.value       = globalElement.getAttribute("border");      // Get alignment setting    var align = globalElement.getAttribute("align");  if (align) {	  align = align.toLowerCase();  }  var imgClass;  var textID;  switch ( align )  {	  case "top":	  case "center":	  case "right":	  case "left":      dialog.alignTypeSelect.data = align;      break;	  default:  // Default or "bottom"	    dialog.alignTypeSelect.data = "bottom";  }  // we want to force an update so initialize "wasEnableAll" to be the opposite of what the actual state is  wasEnableAll = !IsValidImage(dialog.srcInput.value);  doOverallEnabling();  doDimensionEnabling();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js