add: doDimensionEnabling(); 
context: function InitDialog(){  // Set the controls to the image's attributes  var str = globalElement.getAttribute("src");  if (str)    dialog.srcInput.value = str;    str = globalElement.getAttribute("alt");  if (str)    dialog.altTextInput.value = str;    // Check for image map    if ( SeeMore )  {	  // setup the height and width widgets	  dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "width", "widthUnitsMenulist", gPixel);	  dialog.heightInput.value = InitPixelOrPercentMenulist(globalElement, imageElement, "height", "heightUnitsMenulist", gPixel);	  	  // TODO: We need to get the actual image dimensions.	  //       If different from attribute dimensions, then "custom" is checked.	  // For now, always check custom, so we don't trash existing values	  if ( dialog.widthInput.value.length && dialog.heightInput.value.length 	    && dialog.widthInput.value != "0" && dialog.heightInput.value != "0")	  {	    dialog.isCustomSize = true; 	    dialog.customsizeRadio.checked = true;	  }	  else	  {	    dialog.isCustomSize = false;	    dialog.originalsizeRadio.checked = true;	  }	  // 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();	  }	  switch ( align )	  {	    case "top":	      dialog.alignTypeSelect.selectedIndex = 0;	      break;	    case "center":	      dialog.alignTypeSelect.selectedIndex = 1;	      break;	    case "right":	      dialog.alignTypeSelect.selectedIndex = 3;	      break;	    case "left":	      dialog.alignTypeSelect.selectedIndex = 4;	      break;	    default:  // Default or "bottom"	      dialog.alignTypeSelect.selectedIndex = 2;	      break;	  }  }  // 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();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/84d0431409260a936775bf92b231d1dcfd2af843/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js