Phi: one more thing...
Add a link to ourairports.com from the airport selection page
This commit is contained in:
parent
d0e2a5469a
commit
e5f841bc84
2 changed files with 7 additions and 1 deletions
|
@ -32,6 +32,11 @@
|
||||||
<span style="font-size: 20pt; font-weight: normal; float: right" data-bind="text: name"></span>
|
<span style="font-size: 20pt; font-weight: normal; float: right" data-bind="text: name"></span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<span style="float: right">
|
||||||
|
<a data-bind="button: { text: false, icons: { primary: 'ui-icon-extlink' }},
|
||||||
|
attr { href: 'http://ourairports.com/airports/' + id() + '/' }"
|
||||||
|
target="_bank">View on ourairports.com</a>
|
||||||
|
</span>
|
||||||
<!--
|
<!--
|
||||||
<span style="font-size: 20pt; font-weight: bold;" data-bind="text: city"></span>
|
<span style="font-size: 20pt; font-weight: bold;" data-bind="text: city"></span>
|
||||||
<span style="font-size: 20pt; font-weight: bold;">, </span>
|
<span style="font-size: 20pt; font-weight: bold;">, </span>
|
||||||
|
|
|
@ -241,7 +241,7 @@ define([
|
||||||
return self.metarValidFlag() && self.selectedAirport() && self.selectedAirport().hasMetar();
|
return self.metarValidFlag() && self.selectedAirport() && self.selectedAirport().hasMetar();
|
||||||
});
|
});
|
||||||
|
|
||||||
self.metar = ko.observable(0).extend({
|
self.metar = ko.observable('').extend({
|
||||||
observedProperty : MetarPropertiesPath + "/data"
|
observedProperty : MetarPropertiesPath + "/data"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -252,6 +252,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewModel.prototype.dispose = function() {
|
ViewModel.prototype.dispose = function() {
|
||||||
|
var self = this;
|
||||||
fgcommand.clearMetar(MetarPropertiesPath);
|
fgcommand.clearMetar(MetarPropertiesPath);
|
||||||
self.metar.dispose();
|
self.metar.dispose();
|
||||||
self.metarValidFlag.dispose();
|
self.metarValidFlag.dispose();
|
||||||
|
|
Loading…
Reference in a new issue