// JavaScript for Search Results page - results.do
// created 2/17/2014
// shared for open use across all sites
// $Header: /WebSites/library/javascript/desktop/mvc/views/cruise.js 2     12/21/16 5:00p Adevoe $


var app = app || {};

app.CruiseView = Backbone.View.extend({
    tagName: 'li',
	className: 'wth2-resultsCardLi',
	attributes : function () {
		return {
		  id : "resultsCardLi" + this.model.get('cruiseIndex')
		};
	  }, 
    template: _.template( $( '#cruiseTemplate' ).html() ),
	
    render: function() {
        //this.el is what we defined in tagName. use $el to get access to jQuery html() function
        this.$el.html( this.template( this.model.toJSON() )  );
	    return this;		
    }
});