this.content_rating_collection.url = function() { return sessionModel.get("CONTENT_RATING_LIST_URL") + "/?" + $.param({ "user": window.statusModel.get("user_id"), "content_kind": self.model.get("kind"), "content_id": self.model.get("id") }); };
fetch_by_facility: function() { if (this.model.get("facility")) { // Get new facility ID and fetch this.group_list.fetch({ data: $.param({ facility_id: this.model.get("facility") }) }); } }
initialize: function() { _.bindAll(this, "render"); this.facility_list = new Models.FacilityCollection(); this.listenTo(this.facility_list, 'sync', this.render); this.facility_list.fetch({ data: $.param({ zone_id: ZONE_ID }) }); },