This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.MapView = Ember.View.extend({ | |
| // Other methods here | |
| openPopup: function (options) { | |
| var popup = this.get('popup'), | |
| hiddenPopup = this.get('lastPopupView'), | |
| controller = this.get('controller'); | |
| // close last popup | |
| if (popup) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildingMarkers: function () { | |
| var results = Ember.ArrayProxy.create({ content: Ember.A([]) }), | |
| buildings = this.get('content'); | |
| mapController = this.get('map'), | |
| marker, | |
| bin, | |
| latlng, | |
| building; | |
| for (building in buildings) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ready: function () { | |
| var content = this.get('content'), | |
| gmap = this.get('map.gmap'); | |
| return content && gmap; | |
| }.property('controllers.map.gmap', 'content'), | |
| drawSearchResults: function () { | |
| var self = this, | |
| marker, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.Provider = Ember.Object.extend({ | |
| id: null, | |
| name: null, | |
| category: null, | |
| description: null, | |
| technology: null, | |
| downSpeedTier: null, | |
| upSpeedTier: null, | |
| address: null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Catch Promise errors even if not caught on the promise object. | |
| Ember.RSVP.configure('onerror', function(error) { | |
| console.warn(error.message); | |
| console.log(error.stack); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.MapView = Ember.View.extend({ | |
| templateName: 'map', | |
| mapOptions: null, | |
| init: function () { | |
| this._super(); | |
| // Enable new gmaps ui | |
| this.set('mapOptions', App.Config.mapOptions); | |
| google.maps.visualRefresh = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| geom = models.MultiPolygonField(srid=4326, null=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| serviceStateManager: Ember.StateManager.extend({ | |
| enableLogging: true, | |
| initialState: function () { | |
| var accountType = this.get('auth.user.accountType'), | |
| result = 'notProvider'; | |
| if (accountType === 'isp') { | |
| result = 'isProvider'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DemandAdmin(admin.ModelAdmin): | |
| search_fields = ['building__pk', 'provider__name'] | |
| list_display = ['pk', 'building', 'download_speed_tier', 'techtrans', 'provider', 'address'] | |
| #readonly_fields = ['building'] | |
| raw_id_fields = ['building'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error: Error rendering view at :: | |
| error: Using layout located at :: | |
| error: Server Error (500) | |
| error: Error: Failed to lookup view "home/index" | |
| at Function.app.render (/usr/local/lib/node_modules/sails/node_modules/express/lib/application.js:495:17) | |
| at ServerResponse.res.render (/usr/local/lib/node_modules/sails/node_modules/express/lib/response.js:798:7) | |
| at ServerResponse._addResViewMethod.res.view (/usr/local/lib/node_modules/sails/lib/hooks/views/index.js:297:15) | |
| at serveView (/usr/local/lib/node_modules/sails/lib/hooks/views/index.js:187:9) | |
| at wrapperFn (/usr/local/lib/node_modules/sails/lib/router/bind.js:271:5) | |
| at _bind.enhancedFn (/usr/local/lib/node_modules/sails/lib/router/bind.js:375:4) |