fix database name in view
[angular-mojolicious.git] / public / app / conference / registration.js
index cdd76d6..a4f93b3 100644 (file)
@@ -102,7 +102,7 @@ console.debug( 'load_symposium ', s_id, self.symposium );
 console.debug( self.$xhr );
 
                self.$xhr("JSON"
-                       , "/conference/_design/symposium/_view/works?callback=JSON_CALLBACK;key=" + s_id
+                       , "/" + database + "/_design/symposium/_view/works?callback=JSON_CALLBACK;key=" + s_id
                        , function(code, response){ 
 console.log('symposium/_view/works', code, response);
                                angular.foreach( response.rows, function(row) {