App.Views.SourceDocs = Backbone.View.extend({ initialize: function() { var source_id = this.model.get('source_id'); var user = this.model.get('user_id'); var doctype = this.model.get('doctype'); var client_id = this.model.get('client_id'); this.render(source_id); this.model.get_source_params(source_id); if(doctype == 'client'){ client = new Client(); client.list_client_docs(client_id,source_id) } else{ this.model.list_source_docs(source_id,user); } }, render: function(source_id) { $('#secondary-nav').css('display','block'); out = ""; out += ""; out += ""; out += "" out += ""; out += "

Attributes

Attributes for source adapter. Read more
Loading...
"; out += ""; out += ""; out += "

Documents

Redis documents for source adapter. Read more
Loading...
"; $(this.el).html(out); $('#main_content').html(this.el); } });