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>
|
||||
</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;">, </span>
|
||||
|
|
|
@ -241,7 +241,7 @@ define([
|
|||
return self.metarValidFlag() && self.selectedAirport() && self.selectedAirport().hasMetar();
|
||||
});
|
||||
|
||||
self.metar = ko.observable(0).extend({
|
||||
self.metar = ko.observable('').extend({
|
||||
observedProperty : MetarPropertiesPath + "/data"
|
||||
});
|
||||
|
||||
|
@ -252,6 +252,7 @@ define([
|
|||
}
|
||||
|
||||
ViewModel.prototype.dispose = function() {
|
||||
var self = this;
|
||||
fgcommand.clearMetar(MetarPropertiesPath);
|
||||
self.metar.dispose();
|
||||
self.metarValidFlag.dispose();
|
||||
|
|
Loading…
Reference in a new issue