fetch typeahead from correct database
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 9 Jan 2013 23:34:11 +0000 (00:34 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 9 Jan 2013 23:34:11 +0000 (00:34 +0100)
app/js/services.js

index 88ff3c4..142e930 100644 (file)
@@ -39,7 +39,7 @@ angular.module('myApp.services', [ 'ngResource' ]).
                });
        }).
        factory('View', function($resource) {
-               return $resource('/:database/_design/registration/_view/:view?group=true;format=:format', { database: 'drzb2013' }, {
+               return $resource('/:database/_design/registration/_view/:view?group=true;format=:format', { database: 'drzb2013v2' }, {
                        key_array: {method:'GET', params:{ format:'key_array' }, isArray:false}
                });