Permalink
Browse files

callback function added to api.Builder

  • Loading branch information...
1 parent 56daf9c commit cf885716196ac4e7d0f46753adac90e8bba76d95 @danieleguido committed Mar 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/js/oo.js
View
@@ -121,8 +121,8 @@ oo.api.Builder = function( model ){
instance.ajax( 'post', 'edit', params, oo.api.urlfactory( oo.urls[ 'edit_' + instance.model ], params.id ), callback );
}
- this.list = function( params ){
- instance.ajax( 'get', 'list', params, oo.urls[ 'list_' + instance.model ] );
+ this.list = function( params, callback ){
+ instance.ajax( 'get', 'list', params, oo.urls[ 'list_' + instance.model ], callback );
}
this.add = function( params ){

0 comments on commit cf88571

Please sign in to comment.