define(["libs/toastr","toolshed/scripts/mvc/groups/group-model","toolshed/scripts/mvc/groups/group-listrow-view"],function(a,b,c){var d=Backbone.View.extend({el:"#groups_element",defaults:{},initialize:function(c){this.options=_.defaults(this.options||{},this.defaults,c);var d=this;window.globalTS.groups.collection=new b.Groups,window.globalTS.groups.collection.fetch({success:function(a){console.log("received data: "),console.log(a),d.render()},error:function(b,c){a.error("undefined"!=typeof c.responseJSON?c.responseJSON.err_msg:"An error occurred.")}})},fetch:function(){},render:function(a){this.options=_.extend(this.options,a),$(".tooltip").hide();var b=this.templateGroupsList();this.$el.html(b({length:window.globalTS.groups.collection.models.length})),this.renderRows(window.globalTS.groups.collection.models),$("#center [data-toggle]").tooltip(),$("#center").css("overflow","auto")},renderRows:function(a){for(var b=0;b'),a.push(""),a.push('
'),a.push("<% if(length === 0) { %>"),a.push("
There are no groups yet.
"),a.push("<% } else{ %>"),a.push(''),a.push(" "),a.push(" "),a.push(" "),a.push(" "),a.push(" "),a.push(' '),a.push(" "),a.push("
NameMembersRepositories
"),a.push("<% }%>"),a.push("
"),_.template(a.join(""))}});return{GroupListView:d}}); //# sourceMappingURL=../../../maps/mvc/groups/group-list-view.js.map