Example #1
0
 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")
     });
 };
Example #2
0
 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")
             })
         });
     }
 }
Example #3
0
 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
             })
         });
 },