Skip to content

Instantly share code, notes, and snippets.

@krusty
Created April 13, 2012 03:52
Show Gist options
  • Save krusty/2373544 to your computer and use it in GitHub Desktop.
Save krusty/2373544 to your computer and use it in GitHub Desktop.
diff --git a/src/smb/static/javascripts/modules/listing.js b/src/smb/static/javascripts/modules/listing.js
--- a/src/smb/static/javascripts/modules/listing.js
+++ b/src/smb/static/javascripts/modules/listing.js
@@ -124,17 +124,17 @@
},
idAttribute: 'inst_id',
url: function () {
return "/account/" +
Location.locations().account +
"/location/" +
- this.get('business_id') +
+ Location.locations().selected().id +
"/instance/" +
this.get('inst_id') + '/';
}
});
Listing.List = smb.Collection.extend({
model: Listing.Model,
diff --git a/src/smb/templates/portal/underscore/listing_search.html b/src/smb/templates/portal/underscore/listing_search.html
--- a/src/smb/templates/portal/underscore/listing_search.html
+++ b/src/smb/templates/portal/underscore/listing_search.html
@@ -44,16 +44,16 @@
</div>
</script>
<script type="text/html" id="listing-result-template">
<td>
<a href="#" class="listing-add" data-ga-category="Listings" data-ga-action="add listing"> Add Account </a>
</td>
<td>
- <label for="<%= business_id %>"> <%= name %>
+ <label> <%= name %>
<br/>
<%= norm_location.formatted_address %>
</label>
</td>
<td></td>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment