Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set initial values for office and tags

  • Loading branch information...
commit d8c785d1fbf0aaad47e40169e3dbe42da517aee6 1 parent 2e91068
@emanchado authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  leakyleaks.html
View
3  leakyleaks.html
@@ -72,6 +72,7 @@
},
setupTags: function(tag) {
var self = this;
+ self.tags = [];
this.LeakFeedResourceProxy.getTags({}, function(r) {
self.availableTags = r.sort(function(a, b) {
var aName = a.display_name;
@@ -83,6 +84,7 @@
},
setupOffices: function(tag) {
var self = this;
+ self.office = '';
this.LeakFeedResourceProxy.getOffices({}, function(r) {
self.availableOffices = r.sort(function(a, b) {
var aName = a.display_name.replace("Embassy ", "").
@@ -192,6 +194,7 @@
<div class="clearfix">
<label for="office">Office:</label>
<select id="office" name="office" style="height: auto">
+ <option value="">Choose office</option>
<option ng:repeat="o in availableOffices" value="{{o.name}}">{{o.display_name|officename}} ({{o.cables}})</option>
</select>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.