in aws-ecs-server/src/main/resources/buildServerResources/ecsSettings.js [50:96]
initialize: function(){
this.$imagesTable = $j('#ecsImagesTable');
this.$imagesTableWrapper = $j('.imagesTableWrapper');
this.$emptyImagesListMessage = $j('.emptyImagesListMessage'); //TODO: implement
this.$showAddImageDialogButton = $j('#showAddImageDialogButton');
//add / edit image dialog
this.$addImageButton = $j('#ecsAddImageButton');
this.$cancelAddImageButton = $j('#ecsCancelAddImageButton');
this.$deleteImageButton = $j('#ecsDeleteImageButton');
this.$cancelDeleteImageButton = $j('#ecsCancelDeleteImageButton');
this.$launchType = $j('#launchType');
this.$taskDefinition = $j('#taskDefinition');
this.$agentNamePrefix = $j('#agentNamePrefix');
this.$taskGroup = $j('#taskGroup');
this.$subnets = $j('#subnets');
this.$fargatePlatformVersion = $j('#fargatePlatformVersion');
this.$securityGroups = $j('#securityGroups');
this.$assignPublicIp = $j('#assignPublicIp');
this.$cluster = $j('#cluster');
this.$maxInstances = $j('#maxInstances');
this.$cpuReservationLimit = $j('#cpuReservationLimit');
this.$agentPoolId = $j('#agent_pool_id');
this.$imagesDataElem = $j('#' + 'source_images_json');
var self = this;
var rawImagesData = this.$imagesDataElem.val() || '[]';
this._imagesDataLength = 0;
try {
var imagesData = JSON.parse(rawImagesData);
this.imagesData = imagesData.reduce(function (accumulator, imageDataStr) {
accumulator[self._imagesDataLength++] = imageDataStr;
return accumulator;
}, {});
} catch (e) {
this.imagesData = {};
BS.Log.error('bad images data: ' + rawImagesData);
}
this._bindHandlers();
this._renderImagesTable();
BS.Clouds.Admin.CreateProfileForm.checkIfModified();
},