in cloud-vmware-server/src/main/resources/buildServerResources/vmware-settings.js [237:249]
showDialog: function (action, imageId) {
$j('#VMWareImageDialogTitle').text((action ? 'Edit' : 'Add') + ' Image');
BS.Hider.addHideFunction('VMWareImageDialog', this.resetDataAndDialog.bind(this));
typeof imageId !== 'undefined' && (this._image = $j.extend({}, this.imagesData[imageId]));
this.$addImageButton.val(action ? 'Save' : 'Add').data('image-id', imageId);
if (imageId === 'undefined'){
this.$addImageButton.removeData('image-id');
}
BS.VMWareImageDialog.showCentered();
},