fix database name in view
[angular-mojolicious.git] / public / app / conference / symposiums.js
1
2 Symposiums.$inject = ['$xhr', '$route']; 
3
4 function Symposiums(xhr, route){ 
5
6         this.route = route; 
7         this.xhr = xhr; 
8
9         var data = {}
10         this.data = data;
11
12         this.xhr("JSON"
13                 , "/"+database+"/_design/symposium/_view/work_nr%2Ctitle?callback=JSON_CALLBACK"
14                 , function(code, response){ 
15                         console.log(code, response, data);
16                         data.response = response;
17                 }
18         ); 
19 }
20