Commit 992c577e authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

admin fix

parent 0a93a6e6
......@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var OSLocation = (function (_super) {
__extends(OSLocation, _super);
function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, domain, type, subtype, initials) {
var _this = this;
var options = {};
options['single'] = true;
......@@ -35,7 +35,7 @@ var OSLocation = (function (_super) {
self.dateFormat = 'YYYY-MM-DD';
self.timeFormat = 'HH:mm';
var obsdateRowDiv = L.DomUtil.create('div', 'uk-form-row uk-margin-remove', fieldset);
_super.prototype.addLabelDiv.call(_this, obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-time' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-time' target='_blank'>here</a>");
var obsdateDiv = L.DomUtil.create('div', 'uk-form-controls uk-form-icon uk-width-1-1', obsdateRowDiv);
obsdateDiv.id = 'guide' + initials + 'date';
var obsdateIcon = L.DomUtil.create('span', 'uk-icon-calendar', obsdateDiv);
......@@ -45,7 +45,7 @@ var OSLocation = (function (_super) {
self.obsTimeInput = L.DomUtil.create('input', 'uk-width-1-2', obsdateDiv);
self.obsTimeInput.type = 'text';
var depthRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-depth' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-depth' target='_blank'>here</a>");
var depthDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
self.depthInput = L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
self.depthInput.type = 'number';
......@@ -121,7 +121,7 @@ var OSLocation = (function (_super) {
}(STWkit.LocationCard));
var OSAmount = (function (_super) {
__extends(OSAmount, _super);
function OSAmount(id, parentDiv, lang, map, type, subtype, initials) {
function OSAmount(id, parentDiv, lang, map, domain, type, subtype, initials) {
var _this = this;
var amountDiv = L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
_this = _super.call(this, id, 'Amount', parentDiv, amountDiv) || this;
......@@ -149,7 +149,7 @@ var OSAmount = (function (_super) {
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
};
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-totalamount' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-totalamount' target='_blank'>here</a>");
var amountValueDiv = L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
......@@ -171,7 +171,7 @@ var OSAmount = (function (_super) {
self.durationInput.value = '6';
validate();
};
_super.prototype.addLabelDiv.call(_this, durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-amount-duration' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-amount-duration' target='_blank'>here</a>");
var durationDiv = L.DomUtil.create('div', '', durationRowDiv);
self.durationInput = L.DomUtil.create('input', 'uk-width-1-4', durationDiv);
self.durationInput.type = 'number';
......@@ -307,7 +307,7 @@ var L;
this.container = L.DomUtil.create('div', self.name + '-control');
this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials + 'locationCard';
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.domain, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
var periodoptions = {};
......@@ -317,6 +317,7 @@ var L;
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
oiltypeoptions['domain'] = this.domain;
oiltypeoptions['type'] = this.type;
oiltypeoptions['subtype'] = this.subtype;
oiltypeoptions['initials'] = this.initials;
......@@ -325,7 +326,7 @@ var L;
self.cardMap[oiltypeid] = new STWkit.OilTypeCard(oiltypeid, 'Type of oil', this.accordionDiv, self.lang, map, oiltypeoptions);
this.cardMap[periodid].addChangeFnListener(this.cardMap[oiltypeid]);
var amountid = self.initials + 'amountCard';
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.type, self.subtype, self.initials);
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.domain, self.type, self.subtype, self.initials);
this.cardMap[locationid].addChangeFnListener(this.cardMap[periodid]);
_super.prototype.setup.call(this, map);
var chain = [];
......
......@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var OSLocation = (function (_super) {
__extends(OSLocation, _super);
function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
function OSLocation(id, parentDiv, lang, langData, map, forcing, obs, domain, type, subtype, initials) {
var _this = this;
var options = {};
options['single'] = true;
......@@ -35,7 +35,7 @@ var OSLocation = (function (_super) {
self.dateFormat = 'YYYY-MM-DD';
self.timeFormat = 'HH:mm';
var obsdateRowDiv = L.DomUtil.create('div', 'uk-form-row uk-margin-remove', fieldset);
_super.prototype.addLabelDiv.call(_this, obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-time' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-time' target='_blank'>here</a>");
var obsdateDiv = L.DomUtil.create('div', 'uk-form-controls uk-form-icon uk-width-1-1', obsdateRowDiv);
obsdateDiv.id = 'guide' + initials + 'date';
var obsdateIcon = L.DomUtil.create('span', 'uk-icon-calendar', obsdateDiv);
......@@ -45,7 +45,7 @@ var OSLocation = (function (_super) {
self.obsTimeInput = L.DomUtil.create('input', 'uk-width-1-2', obsdateDiv);
self.obsTimeInput.type = 'text';
var depthRowDiv = L.DomUtil.create('div', 'uk-form-row', fieldset);
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-depth' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-depth' target='_blank'>here</a>");
var depthDiv = L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
self.depthInput = L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
self.depthInput.type = 'number';
......@@ -121,7 +121,7 @@ var OSLocation = (function (_super) {
}(STWkit.LocationCard));
var OSAmount = (function (_super) {
__extends(OSAmount, _super);
function OSAmount(id, parentDiv, lang, map, type, subtype, initials) {
function OSAmount(id, parentDiv, lang, map, domain, type, subtype, initials) {
var _this = this;
var amountDiv = L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
_this = _super.call(this, id, 'Amount', parentDiv, amountDiv) || this;
......@@ -149,7 +149,7 @@ var OSAmount = (function (_super) {
amountRowDiv.guideFn = function () {
self.amountInput.value = '100';
};
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-totalamount' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-totalamount' target='_blank'>here</a>");
var amountValueDiv = L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
......@@ -171,7 +171,7 @@ var OSAmount = (function (_super) {
self.durationInput.value = '6';
validate();
};
_super.prototype.addLabelDiv.call(_this, durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/#" + type + "-" + subtype + "-amount-duration' target='_blank'>here</a>");
_super.prototype.addLabelDiv.call(_this, durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/?domain=" + domain.toLowerCase() + "#" + type + "-" + subtype + "-amount-duration' target='_blank'>here</a>");
var durationDiv = L.DomUtil.create('div', '', durationRowDiv);
self.durationInput = L.DomUtil.create('input', 'uk-width-1-4', durationDiv);
self.durationInput.type = 'number';
......
This diff is collapsed.
......@@ -13,7 +13,7 @@ class OSLocation extends STWkit.LocationCard {
public obsTimeInput: HTMLInputElement;
public depthInput: HTMLInputElement;
constructor(id, parentDiv, lang, langData, map, forcing, obs, type, subtype, initials) {
constructor(id, parentDiv, lang, langData, map, forcing, obs, domain, type, subtype, initials) {
var options:any = {};
options['single'] = true;
options['line'] = false;
......@@ -34,7 +34,7 @@ class OSLocation extends STWkit.LocationCard {
self.dateFormat = 'YYYY-MM-DD';
self.timeFormat = 'HH:mm';
var obsdateRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row uk-margin-remove',fieldset);
super.addLabelDiv(obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/#"+type+"-"+subtype+"-time' target='_blank'>here</a>");
super.addLabelDiv(obsdateRowDiv, "Observation time (UTC)", "See more information <a style='color:#faa732;' href='help/classic/?domain="+domain.toLowerCase()+"#"+type+"-"+subtype+"-time' target='_blank'>here</a>");
var obsdateDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-controls uk-form-icon uk-width-1-1', obsdateRowDiv);
obsdateDiv.id = 'guide'+initials+'date';
var obsdateIcon = <HTMLSpanElement>L.DomUtil.create('span', 'uk-icon-calendar', obsdateDiv);
......@@ -46,7 +46,7 @@ class OSLocation extends STWkit.LocationCard {
var depthRowDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-form-row', fieldset);
super.addLabelDiv(depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/#"+type+"-"+subtype+"-depth' target='_blank'>here</a>");
super.addLabelDiv(depthRowDiv, "Outlet depth (m)", "See more information <a style='color:#faa732;' href='help/classic/?domain="+domain.toLowerCase()+"#"+type+"-"+subtype+"-depth' target='_blank'>here</a>");
var depthDiv = <HTMLDivElement>L.DomUtil.create('div', ' uk-width-1-1', depthRowDiv);
self.depthInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', depthDiv);
self.depthInput.type = 'number';
......@@ -143,7 +143,7 @@ class OSAmount extends STWkit.AccordionCard {
public durationSelect: HTMLSelectElement;
public nextButton: any;
constructor(id, parentDiv, lang, map, type, subtype, initials) {
constructor(id, parentDiv, lang, map, domain, type, subtype, initials) {
var amountDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1 uk-margin-top', parentDiv);
super(id, 'Amount', parentDiv, amountDiv);
var self = this;
......@@ -173,7 +173,7 @@ class OSAmount extends STWkit.AccordionCard {
self.amountInput.value = '100';
}
super.addLabelDiv(amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/#"+type+"-"+subtype+"-totalamount' target='_blank'>here</a>");
super.addLabelDiv(amountRowDiv, "Total amount/rate", "See more information <a style='color:#faa732;' href='help/classic/?domain="+domain.toLowerCase()+"#"+type+"-"+subtype+"-totalamount' target='_blank'>here</a>");
var amountValueDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-width-1-1', amountRowDiv);
self.amountInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', amountValueDiv);
self.amountInput.type = 'number';
......@@ -197,7 +197,7 @@ class OSAmount extends STWkit.AccordionCard {
validate();
}
super.addLabelDiv(durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/#"+type+"-"+subtype+"-amount-duration' target='_blank'>here</a>");
super.addLabelDiv(durationRowDiv, "Duration", "See more information <a style='color:#faa732;' href='help/classic/?domain="+domain.toLowerCase()+"#"+type+"-"+subtype+"-amount-duration' target='_blank'>here</a>");
var durationDiv = <HTMLDivElement>L.DomUtil.create('div', '', durationRowDiv);
self.durationInput = <HTMLInputElement>L.DomUtil.create('input', 'uk-width-1-4', durationDiv);
self.durationInput.type = 'number';
......
......@@ -35,7 +35,7 @@ var L;
this.container = L.DomUtil.create('div', self.name + '-control');
this.accordionDiv = L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials + 'locationCard';
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.domain, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials + 'periodCard';
var periodoptions = {};
......@@ -45,6 +45,7 @@ var L;
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
oiltypeoptions['domain'] = this.domain;
oiltypeoptions['type'] = this.type;
oiltypeoptions['subtype'] = this.subtype;
oiltypeoptions['initials'] = this.initials;
......@@ -53,7 +54,7 @@ var L;
self.cardMap[oiltypeid] = new STWkit.OilTypeCard(oiltypeid, 'Type of oil', this.accordionDiv, self.lang, map, oiltypeoptions);
this.cardMap[periodid].addChangeFnListener(this.cardMap[oiltypeid]);
var amountid = self.initials + 'amountCard';
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.type, self.subtype, self.initials);
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.domain, self.type, self.subtype, self.initials);
this.cardMap[locationid].addChangeFnListener(this.cardMap[periodid]);
_super.prototype.setup.call(this, map);
var chain = [];
......
{"version":3,"file":"leaflet-oilspill-control.js","sourceRoot":"","sources":["leaflet-oilspill-control.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,yCAAyC;AACzC,yCAAyC;AACzC,wCAAwC;AACxC,wCAAwC;AACxC,yCAAyC;AACzC,kDAAkD;;;;;;;;;;;AAElD,IAAO,CAAC,CAoFP;AApFD,WAAO,CAAC;IAAC,IAAA,OAAO,CAoFf;IApFQ,WAAA,OAAO;QACZ;YAA8B,4BAAkB;YAe5C,kBAAY,OAAO;gBAAnB,YACI,kBAAM,OAAO,CAAC,SAKjB;gBAJG,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;gBAClB,KAAI,CAAC,OAAO,GAAG,aAAa,CAAC;gBAC7B,KAAI,CAAC,IAAI,GAAG,UAAU,CAAC;gBACvB,KAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;;YACzB,CAAC;YAEO,wBAAK,GAAb,UAAc,GAAG;gBAAjB,iBA6CC;gBA5CG,IAAI,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,GAAC,UAAU,CAAC,CAAC;gBAC/D,IAAI,CAAC,YAAY,GAAmB,CAAC,CAAC,OAAO,CAAC,MAAM,C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MAAM,CAAC,CAAC;gBAC5C,CAAC,CAAC;YAEN,CAAC;YAEM,wBAAK,GAAZ,UAAa,IAAI;gBACb,iBAAM,KAAK,YAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YAEO,wBAAK,GAAb;gBACI,iBAAM,KAAK,WAAE,CAAC;YAClB,CAAC;YACO,uBAAI,GAAZ;YACA,CAAC;YACO,uBAAI,GAAZ;YACA,CAAC;YAEL,eAAC;QAAD,CAAC,AAnFD,CAA8B,MAAM,CAAC,WAAW,GAmF/C;QAnFY,gBAAQ,WAmFpB,CAAA;IACL,CAAC,EArFQ,OAAO,GAAP,SAAO,KAAP,SAAO,QAqFf;AAAD,CAAC,EArFM,CAAC,KAAD,CAAC,QAqFP"}
\ No newline at end of file
......@@ -35,7 +35,7 @@ module L.Control {
this.container = L.DomUtil.create('div', self.name+'-control');
this.accordionDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-accordion', this.container);
var locationid = self.initials+'locationCard';
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.type, self.subtype, self.initials);
self.cardMap[locationid] = new OSLocation(locationid, this.accordionDiv, self.lang, self.langData, map, self.forcing, self.obs, self.domain, self.type, self.subtype, self.initials);
self.cardMap[locationid].show();
var periodid = self.initials+'periodCard';
var periodoptions = {};
......@@ -45,6 +45,7 @@ module L.Control {
periodoptions['forwardbackward'] = false;
self.cardMap[periodid] = new STWkit.PeriodCard(periodid, 'Simulation period', this.accordionDiv, self.lang, map, self.domain, self.forcingmodel, periodoptions);
var oiltypeoptions = {};
oiltypeoptions['domain'] = this.domain;
oiltypeoptions['type'] = this.type;
oiltypeoptions['subtype'] = this.subtype;
oiltypeoptions['initials'] = this.initials;
......@@ -53,7 +54,7 @@ module L.Control {
self.cardMap[oiltypeid] = new STWkit.OilTypeCard(oiltypeid, 'Type of oil', this.accordionDiv, self.lang, map, oiltypeoptions);
this.cardMap[periodid].addChangeFnListener(this.cardMap[oiltypeid]);
var amountid = self.initials+'amountCard';
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.type, self.subtype, self.initials);
self.cardMap[amountid] = new OSAmount(amountid, this.accordionDiv, self.lang, map, self.domain, self.type, self.subtype, self.initials);
this.cardMap[locationid].addChangeFnListener(this.cardMap[periodid]);
super.setup(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment