init: function()

in cloud-vmware-server/src/main/resources/buildServerResources/vmware-settings.js [23:74]


        init: function (refreshOptionsUrl, refreshSnapshotsUrl, configurationHelperUrl, imagesDataElemId, serverUrlElemId) {
            this.refreshOptionsUrl = refreshOptionsUrl;
            this.refreshSnapshotsUrl = refreshSnapshotsUrl;
            this.configurationHelperUrl = configurationHelperUrl;
            this.$imagesDataElem = $j('#' + imagesDataElemId);

            this.$serverUrl = $j(BS.Util.escapeId(serverUrlElemId));
            this.$serverUsername = $j(BS.Util.escapeId('vmware_username'));
            this.$serverPassword = $j(BS.Util.escapeId('secure:vmware_password'));
            this.$profileInstancesLimit = $j('#vmware_profile_instance_limit');

            this.$fetchOptionsButton = $j('#vmwareFetchOptionsButton');
            this.$emptyImagesListMessage = $j('.emptyImagesListMessage');
            this.$imagesTableWrapper = $j('.imagesTableWrapper');
            this.$imagesTable = $j('#vmwareImagesTable');
            this.$options = $j('.vmWareSphereOptions');

            this.$image = $j(this.selectors.imagesSelect);
            this.$behaviour = $j('.behaviour__value');
            this.$snapshot = $j('#snapshot');
            this.$currentStateWarning = $j('.currentStateWarning');
            this.$cloneFolder = $j('#cloneFolder');
            this.$resourcePool = $j('#resourcePool');
            this.$maxInstances = $j('#maxInstances');
            this.$agentPool = $j("#agent_pool_id");
            this.$nickname = $j("#nickname");
            this.$cloneOptions = $j(this.selectors.cloneOptionsRow);
            this.$customizationSpec = $j('#customizationSpec');

            this.$addImageButton = $j('#vmwareAddImageButton');
            this.$fetchOptionsError = $j('#error_fetch_options');
            this.$cancelButton = $j('#vmwareCancelAddImageButton');
            this.$showDialogButton = $j('#vmwareShowDialogButton');
            this.loaders = {
                fetchOptions: $j('.fetchingServerOptions'),
                fetchSnapshots: $j('.fetchingSnapshots')
            };

            this._lastImageId = this._imagesDataLength = 0;
            this._initImage();

            this.$cloneOptions.toggleClass('hidden', !this._isClone());
            this._displaySnapshotSelect();

            this._toggleDialogShowButton();
            this._toggleEditLinks();
            this.validateServerSettings() && this.fetchOptions();
            this._initImagesData();
            this._bindHandlers();
            this._disableCheckModifiedForDialog();
            this.renderImagesTable();
        },