Skip to content

Commit

Permalink
callback function added to api.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Mar 25, 2013
1 parent 56daf9c commit cf88571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/oo.js
Expand Up @@ -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 ); instance.ajax( 'post', 'edit', params, oo.api.urlfactory( oo.urls[ 'edit_' + instance.model ], params.id ), callback );
} }


this.list = function( params ){ this.list = function( params, callback ){
instance.ajax( 'get', 'list', params, oo.urls[ 'list_' + instance.model ] ); instance.ajax( 'get', 'list', params, oo.urls[ 'list_' + instance.model ], callback );
} }


this.add = function( params ){ this.add = function( params ){
Expand Down

0 comments on commit cf88571

Please sign in to comment.