Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 1 | XOSTenantSite = XOSModel.extend( { |
| 2 | listFields: ["name", "allocated"], |
| 3 | modelName: "tenantSite", |
| 4 | collectionName: "tenantSites" |
| 5 | }); |
| 6 | |
| 7 | XOSTenantSiteCollection = XOSCollection.extend( { |
| 8 | listFields: ["name", "allocated"], |
| 9 | modelName: "tenantSite", |
| 10 | collectionName: "tenantSites", |
| 11 | |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 12 | getFromSlice: function(slice) { |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 13 | var tenantSites = []; |
| 14 | var id = 0; |
| 15 | for (siteName in slice.attributes.site_allocation) { |
| 16 | allocated = slice.attributes.site_allocation[siteName]; |
| 17 | tenantSites.push(new XOSTenantSite( { name: siteName, allocated: allocated, id: id} )); |
| 18 | id = id + 1; |
| 19 | } |
| 20 | for (index in xos.tenantview.models[0].attributes.blessed_site_names) { |
| 21 | siteName = xos.tenantview.models[0].attributes.blessed_site_names[index]; |
| 22 | if (! (siteName in slice.attributes.site_allocation)) { |
| 23 | tenantSites.push(new XOSTenantSite( { name: siteName, allocated: 0, id: id} )); |
| 24 | id = id + 1; |
| 25 | } |
| 26 | } |
| 27 | this.set(tenantSites); |
| 28 | }, |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 29 | |
| 30 | putToSlice: function(slice) { |
| 31 | slice.attributes.site_allocation = {}; |
| 32 | for (index in this.models) { |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 33 | var model = this.models[index]; |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 34 | slice.attributes.site_allocation[ model.attributes.name ] = model.attributes.allocated; |
| 35 | } |
| 36 | }, |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 37 | }); |
| 38 | |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 39 | XOSEditUsersView = Marionette.ItemView.extend({ |
| 40 | template: "#tenant-edit-users", |
| 41 | viewInitializers: [], |
| 42 | |
| 43 | onShow: function() { |
| 44 | _.each(this.viewInitializers, function(initializer) { |
| 45 | initializer(); |
| 46 | }); |
| 47 | }, |
| 48 | |
| 49 | templateHelpers: function() { return { detailView: this, model: this.model }; }, |
| 50 | |
| 51 | }); |
| 52 | |
| 53 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 54 | XOSTenantButtonView = Marionette.ItemView.extend({ |
| 55 | template: "#xos-tenant-buttons-template", |
| 56 | |
| 57 | events: {"click button.btn-tenant-create": "createClicked", |
| 58 | "click button.btn-tenant-delete": "deleteClicked", |
| 59 | "click button.btn-tenant-add-user": "addUserClicked", |
| 60 | "click button.btn-tenant-save": "saveClicked", |
| 61 | }, |
| 62 | |
| 63 | createClicked: function(e) { |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 64 | XOSTenantApp.addSlice(); |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 65 | }, |
| 66 | |
| 67 | deleteClicked: function(e) { |
Scott Baker | 6b145aa | 2015-01-12 12:56:25 -0800 | [diff] [blame] | 68 | XOSTenantApp.deleteSlice(this.options.linkedView.model); |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 69 | }, |
| 70 | |
| 71 | addUserClicked: function(e) { |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 72 | XOSTenantApp.editUsers(this.options.linkedView.model); |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 73 | }, |
| 74 | |
| 75 | saveClicked: function(e) { |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 76 | model = this.options.linkedView.model; |
| 77 | model.tenantSiteCollection.putToSlice(model); |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 78 | model.attributes.users = model.usersBuffer; |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 79 | this.options.linkedView.submitContinueClicked.call(this.options.linkedView, e); |
| 80 | }, |
| 81 | }); |
| 82 | |
| 83 | XOSTenantApp = new XOSApplication({ |
| 84 | logTableId: "#logTable", |
| 85 | statusMsgId: "#statusMsg", |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 86 | hideTabsByDefault: true, |
| 87 | varName: "XOSTenantApp", |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 88 | }); |
| 89 | |
| 90 | XOSTenantApp.addRegions({ |
| 91 | tenantSliceSelector: "#tenantSliceSelector", |
| 92 | tenantSummary: "#tenantSummary", |
| 93 | tenantSiteList: "#tenantSiteList", |
| 94 | tenantButtons: "#tenantButtons", |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 95 | tenantAddSliceInterior: "#tenant-addslice-interior", |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 96 | tenantEditUsersInterior: "#tenant-edit-users-interior", |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 97 | }); |
| 98 | |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 99 | XOSTenantApp.buildViews = function() { |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 100 | XOSTenantApp.tenantSites = new XOSTenantSiteCollection();
|
| 101 |
|
| 102 | tenantSummaryClass = XOSDetailView.extend({template: "#xos-detail-template",
|
| 103 | app: XOSTenantApp,
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 104 | detailFields: ["serviceClass", "default_image", "default_flavor", "network_ports", "mount_data_sets"],
|
Scott Baker | e56d327 | 2015-01-14 00:47:50 -0800 | [diff] [blame] | 105 | fieldDisplayNames: {serviceClass: "Service Level", "default_flavor": "Flavor", "default_image": "Image", "mount_data_sets": "Data Sets"},
|
Scott Baker | e7a9045 | 2015-01-14 17:07:30 -0800 | [diff] [blame] | 106 |
|
| 107 | onShow: function() {
|
| 108 | // the slice selector is in a different table, so make every label cell the maximal width
|
| 109 | make_same_width("#xos-tenant-view-panel", ".xos-label-cell");
|
| 110 | },
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 111 | });
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 112 |
|
| 113 | XOSTenantApp.tenantSummaryView = tenantSummaryClass;
|
| 114 |
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 115 | tenantAddClass = XOSDetailView.extend({template: "#xos-detail-template",
|
| 116 | app: XOSTenantApp,
|
| 117 | detailFields: ["name", "description"]});
|
| 118 |
|
| 119 | XOSTenantApp.tenantAddView = tenantAddClass;
|
| 120 |
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 121 | tenantSiteItemClass = XOSItemView.extend({template: "#xos-listitem-template",
|
| 122 | app: XOSTenantApp});
|
| 123 |
|
| 124 | XOSTenantApp.tenantSiteItemView = tenantSiteItemClass;
|
| 125 |
|
| 126 | tenantSiteListClass = XOSDataTableView.extend({template: "#xos-list-template",
|
| 127 | app: XOSTenantApp,
|
| 128 | childView: tenantSiteItemClass,
|
| 129 | collection: XOSTenantApp.tenantSites,
|
| 130 | title: "sites",
|
| 131 | inputType: {allocated: "spinner"},
|
| 132 | noDeleteColumn: true,
|
Scott Baker | e56d327 | 2015-01-14 00:47:50 -0800 | [diff] [blame] | 133 | disablePaginate: true,
|
| 134 | disableFilter: true,
|
Scott Baker | e7a9045 | 2015-01-14 17:07:30 -0800 | [diff] [blame] | 135 | fieldDisplayNames: {"name": "Site"},
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 136 | });
|
| 137 |
|
| 138 | XOSTenantApp.tenantSiteListView = tenantSiteListClass;
|
| 139 |
|
| 140 | XOSTenantApp.tenantSliceSelectorView = SliceSelectorView.extend( {
|
| 141 | sliceChanged: function(id) {
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 142 | XOSTenantApp.navToSlice(id);
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 143 | },
|
| 144 | });
|
| 145 |
|
| 146 | xos.sites.fetch();
|
| 147 | xos.slicesPlus.fetch();
|
| 148 | xos.tenantview.fetch();
|
| 149 | };
|
| 150 |
|
| 151 | make_choices = function(list_of_names, list_of_values) {
|
| 152 | result = [];
|
| 153 | if (!list_of_values) {
|
| 154 | for (index in list_of_names) {
|
| 155 | displayName = list_of_names[index];
|
| 156 | result.push( [displayName, displayName] );
|
| 157 | }
|
Scott Baker | aba9183 | 2015-01-12 13:37:31 -0800 | [diff] [blame] | 158 | } else {
|
| 159 | for (index in list_of_names) {
|
| 160 | displayName = list_of_names[index];
|
| 161 | id = list_of_values[index];
|
| 162 | result.push( [displayName, id] );
|
| 163 | }
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 164 | }
|
| 165 | return result;
|
| 166 | };
|
| 167 |
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 168 | XOSTenantApp.navToSlice = function(id) {
|
| 169 | XOSTenantApp.viewSlice(xos.slicesPlus.get(id));
|
| 170 | };
|
| 171 |
|
| 172 | XOSTenantApp.adjustCollectionField = function(collectionName, id, fieldName, amount) {
|
| 173 | model = XOSTenantApp[collectionName].get(id);
|
| 174 | model.set(fieldName, Math.max(model.get(fieldName) + amount, 0));
|
| 175 | };
|
| 176 |
|
| 177 | XOSTenantApp.addSlice = function() {
|
| 178 | var app=this;
|
Scott Baker | ce0dfb8 | 2015-01-14 09:54:19 -0800 | [diff] [blame] | 179 |
|
| 180 | if (!xos.tenant().current_user_can_create_slice) {
|
| 181 | window.alert("You do not have sufficient rights to create a slice on your site");
|
| 182 | return;
|
| 183 | }
|
| 184 |
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 185 | model = new xos.slicesPlus.model({site: xos.tenant().current_user_site_id,
|
Scott Baker | c898437 | 2015-01-19 08:56:16 -0800 | [diff] [blame] | 186 | name: xos.tenant().current_user_login_base + "_",
|
| 187 | creator: xos.tenant().current_user_id});
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 188 | console.log(model);
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 189 | var detailView = new XOSTenantApp.tenantAddView({model: model,
|
Scott Baker | c898437 | 2015-01-19 08:56:16 -0800 | [diff] [blame] | 190 | collection: xos.slicesPlus,
|
| 191 | noSubmitButton: true,
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 192 | });
|
| 193 | detailView.dialog = $("#tenant-addslice-dialog");
|
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 194 | app.tenantAddSliceInterior.show(detailView);
|
| 195 | $("#tenant-addslice-dialog").dialog({
|
| 196 | autoOpen: false, |
| 197 | modal: true, |
| 198 | width: 640, |
| 199 | buttons : { |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 200 | "Create Slice" : function() { |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 201 | var addDialog = this; |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 202 | console.log("SAVE!!!"); |
Scott Baker | cd07a59 | 2015-01-12 12:37:38 -0800 | [diff] [blame] | 203 | detailView.synchronous = true; |
| 204 | detailView.afterSave = function() { $(addDialog).dialog("close"); XOSTenantApp.navToSlice(detailView.model.id); } |
| 205 | detailView.save(); |
| 206 | }, |
| 207 | "Cancel" : function() { |
| 208 | $(this).dialog("close"); |
| 209 | } |
| 210 | } |
| 211 | }); |
| 212 | $("#tenant-addslice-dialog").dialog("open");
|
| 213 | };
|
| 214 |
|
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 215 | XOSTenantApp.editUsers = function(model) {
|
| 216 | var app=this;
|
| 217 | var detailView = new XOSEditUsersView({model: model, collection: xos.slicesPlus});
|
| 218 | detailView.dialog = $("#tenant-edit-users-dialog");
|
| 219 | app.tenantEditUsersInterior.show(detailView);
|
| 220 | $("#tenant-edit-users-dialog").dialog({
|
| 221 | autoOpen: false, |
| 222 | modal: true, |
| 223 | width: 640, |
| 224 | buttons : { |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 225 | "Ok" : function() { |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 226 | var editDialog = this; |
| 227 | user_ids = all_options($("#tenant-edit-users-dialog").find(".select-picker-to")); |
| 228 | user_ids = user_ids.map( function(x) { return parseInt(x,10); } ); |
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 229 | model.usersBuffer = user_ids; |
Scott Baker | 97acad9 | 2015-01-12 19:45:40 -0800 | [diff] [blame] | 230 | $(editDialog).dialog("close"); |
| 231 | }, |
| 232 | "Cancel" : function() { |
| 233 | $(this).dialog("close"); |
| 234 | } |
| 235 | } |
| 236 | }); |
| 237 | $("#tenant-edit-users-dialog").dialog("open");
|
| 238 | };
|
| 239 |
|
Scott Baker | 6b145aa | 2015-01-12 12:56:25 -0800 | [diff] [blame] | 240 | XOSTenantApp.deleteSlice = function(model) {
|
| 241 | var app=this;
|
| 242 | app.deleteDialog(model, function() { console.log("afterDelete"); app.viewSlice(undefined); });
|
| 243 | };
|
| 244 |
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 245 | XOSTenantApp.viewSlice = function(model) {
|
| 246 | if (!model && xos.slicesPlus.models.length > 0) {
|
| 247 | model = xos.slicesPlus.models[0];
|
| 248 | }
|
| 249 |
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 250 | if (model) {
|
| 251 | sliceSelector = new XOSTenantApp.tenantSliceSelectorView({collection: xos.slicesPlus,
|
| 252 | selectedID: model ? model.id : null,
|
| 253 | } );
|
| 254 | XOSTenantApp.sliceSelector = sliceSelector;
|
| 255 | XOSTenantApp.tenantSliceSelector.show(sliceSelector);
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 256 |
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 257 | tenantSummary = new XOSTenantApp.tenantSummaryView({model: model,
|
| 258 | choices: {mount_data_sets: make_choices(xos.tenant().public_volume_names, null),
|
| 259 | serviceClass: make_choices(xos.tenant().blessed_service_class_names, xos.tenant().blessed_service_classes),
|
| 260 | default_image: make_choices(xos.tenant().blessed_image_names, xos.tenant().blessed_images),
|
| 261 | default_flavor: make_choices(xos.tenant().blessed_flavor_names, xos.tenant().blessed_flavors),},
|
| 262 | });
|
| 263 | XOSTenantApp.tenantSummary.show(tenantSummary);
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 264 |
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 265 | tenantSites = new XOSTenantSiteCollection();
|
| 266 | tenantSites.getFromSlice(model);
|
Scott Baker | 435c2c9 | 2015-01-14 00:34:45 -0800 | [diff] [blame] | 267 | model.usersBuffer = model.attributes.users; /* save a copy of 'users' that we can edit. This prevents another view (developer) from overwriting our copy with a fetch from the server */
|
Scott Baker | 1215424 | 2015-01-16 19:26:54 -0800 | [diff] [blame] | 268 | model.usersOrig = model.attributes.users; /* save an immutable copy that we'll use for username lookups */
|
| 269 | model.user_namesOrig = model.attributes.user_names;
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 270 | model.tenantSiteCollection = tenantSites;
|
| 271 | XOSTenantApp.tenantSites = tenantSites;
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 272 |
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 273 | tenantSiteList = new XOSTenantApp.tenantSiteListView({collection: tenantSites });
|
| 274 | XOSTenantApp.tenantSiteList.show(tenantSiteList);
|
| 275 | // on xos.slicePlus.sort, need to update xostenantapp.tenantSites
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 276 |
|
Scott Baker | b52f7af | 2015-01-13 14:41:41 -0800 | [diff] [blame] | 277 | XOSTenantApp.tenantButtons.show( new XOSTenantButtonView( { app: XOSTenantApp,
|
| 278 | linkedView: tenantSummary } ) );
|
| 279 | } else {
|
| 280 | XOSTenantApp.tenantSliceSelector.show(new HTMLView({html: ""}));
|
| 281 | XOSTenantApp.tenantSummary.show(new HTMLView({html: "You have no slices"}));
|
| 282 | XOSTenantApp.tenantSiteList.show(new HTMLView({html: ""}));
|
| 283 | XOSTenantApp.tenantButtons.show( new XOSTenantButtonView( { template: "#xos-tenant-buttons-noslice-template",
|
| 284 | app: XOSTenantApp,
|
| 285 | linkedView: tenantSummary } ) );
|
| 286 | }
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 287 | };
|
| 288 |
|
Scott Baker | aba9183 | 2015-01-12 13:37:31 -0800 | [diff] [blame] | 289 | XOSTenantApp.sanityCheck = function() {
|
| 290 | errors = [];
|
| 291 | if (xos.tenant().blessed_service_classes.length == 0) {
|
| 292 | errors.push("no blessed service classes");
|
| 293 | }
|
| 294 | if (xos.tenant().blessed_flavors.length == 0) {
|
| 295 | errors.push("no blessed flavors");
|
| 296 | }
|
| 297 | if (xos.tenant().blessed_images.length == 0) {
|
| 298 | errors.push("no blessed images");
|
| 299 | }
|
| 300 | if (xos.tenant().blessed_sites.length == 0) {
|
| 301 | errors.push("no blessed sites");
|
| 302 | }
|
Scott Baker | 9eebcb6 | 2015-01-18 17:04:35 -0800 | [diff] [blame] | 303 | if (xos.tenant().current_user_site_id == null) {
|
| 304 | errors.push("current user does not have a site");
|
| 305 | }
|
Scott Baker | aba9183 | 2015-01-12 13:37:31 -0800 | [diff] [blame] | 306 |
|
| 307 | if (errors.length > 0) {
|
| 308 | $("#tenantSummary").html("Tenant view sanity check failed<br>" + errors.join("<br>"));
|
| 309 | return false;
|
| 310 | }
|
| 311 |
|
| 312 | return true;
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 313 | }
|
| 314 |
|
| 315 | XOSTenantApp.collectionLoadChange = function() {
|
| 316 | stats = xos.getCollectionStatus();
|
| 317 |
|
| 318 | if (!XOSTenantApp.navigationStarted) {
|
| 319 | if (stats["isLoaded"] + stats["failedLoad"] >= stats["startedLoad"]) {
|
Scott Baker | aba9183 | 2015-01-12 13:37:31 -0800 | [diff] [blame] | 320 | if (XOSTenantApp.sanityCheck()) {
|
| 321 | XOSTenantApp.viewSlice(undefined);
|
| 322 | }
|
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 323 | } else {
|
| 324 | $("#tenantSummary").html("<h3>Loading...</h3><div id='xos-startup-progress'></div>");
|
| 325 | $("#xos-startup-progress").progressbar({value: stats["completedLoad"], max: stats["startedLoad"]});
|
| 326 | }
|
| 327 | }
|
| 328 | };
|
| 329 |
|
| 330 | XOSTenantApp.on("start", function() {
|
| 331 | XOSTenantApp.buildViews(); |
| 332 | |
Scott Baker | 342d9b9 | 2015-01-11 13:44:30 -0800 | [diff] [blame] | 333 | // fire it once to initially show the progress bar |
| 334 | XOSTenantApp.collectionLoadChange(); |
| 335 | |
| 336 | // fire it each time the collection load status is updated |
| 337 | Backbone.on("xoslib:collectionLoadChange", XOSTenantApp.collectionLoadChange); |
| 338 | }); |
| 339 | |
| 340 | $(document).ready(function(){ |
| 341 | XOSTenantApp.start(); |
| 342 | }); |
| 343 | |