rem:   sizevalue                             = globalElement.getAttribute("hspace"); dialog.imagelrInput.value             = sizevalue;  sizevalue                             = globalElement.getAttribute("vspace"); dialog.imagetbInput.value             = sizevalue;  sizevalue                             = globalElement.getAttribute("border"); dialog.imageborderInput.value         = sizevalue;   
add: imageTypeExtension = checkForImage(); 
context: function InitDialog() {  // Set the controls to the image's attributes  str                                   = globalElement.getAttribute("src");  if ( str == "null" )  {    str                                 = "";  }  dialog.srcInput.value                 = str;    str                                   = globalElement.getAttribute("alt");  if ( str == "null" )  {    str                                 = "";  }  dialog.altTextInput.value = str;    // set height and width  // note: need to set actual image size if no attributes  dimvalue = globalElement.getAttribute("width");  if ( dimvalue == "null" )  {    dimvalue = "";  }  dialog.imagewidthInput.value          = dimvalue;    dimvalue                              = globalElement.getAttribute("height");  if ( dimvalue == "null" )  {    dimvalue                            = "";  }  dialog.imageheightInput.value         = dimvalue;    // Mods Brian King XML Workshop  // Set H & W pop-up on start-up  if (insertNew == false)  {        var wdh                             = globalElement.getAttribute("width");    var hgt                             = globalElement.getAttribute("height");    ispercentw                          = wdh.substr(wdh.length-1, 1);    ispercenth                          = hgt.substr(hgt.length-1, 1);  if (ispercentw == "%")      setPopup("w");    if (ispercenth == "%")      setPopup("h");  }  // End Mods BK    // this is not the correct way to determine if custom or original  if ( dimvalue != "" )  {    dialog.customsizeRadio.checked      = true;  }  alignpopup                            = document.getElementById("image.alignType");  // set spacing editfields  sizevalue                             = globalElement.getAttribute("hspace");  dialog.imagelrInput.value             = sizevalue;    sizevalue                             = globalElement.getAttribute("vspace");  dialog.imagetbInput.value             = sizevalue;    sizevalue                             = globalElement.getAttribute("border");  dialog.imageborderInput.value         = sizevalue;        // we want to force an update so initialize "wasEnableAll" to be the opposite of what the actual state is  imageTypeExtension                    = checkForImage();  wasEnableAll                          = !imageTypeExtension;  doOverallEnabling();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/25771bd9e4d7db6905ed7b17947434267aa09319/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js