~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/client.js

  • Committer: Rick Harding
  • Date: 2012-01-05 21:28:01 UTC
  • mto: This revision was merged to the branch mainline in revision 14648.
  • Revision ID: rick.harding@canonical.com-20120105212801-t96zn8mnegqsa3yy
garden

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
 * @param query (optional) The structured query variables to use.
226
226
 */
227
227
module.load_model = function(entry, view_name, config, query){
228
 
    var lp_client = entry.lp_client ? entry.lp_client : new Launchpad();
229
228
    var url = module.get_view_url(entry, view_name, 'model', query);
230
229
    var old_on_success = config.on.success;
231
230
    var on = config.on;
232
231
    on.success = module.wrap_resource_on_success;
233
 
 
234
232
    var y_config = {
235
233
        on: on,
236
 
        'arguments': [lp_client, url, old_on_success, false]
 
234
        'arguments': [entry.lp_client, url, old_on_success, false]
237
235
    };
238
236
    var io_provider = module.get_configured_io_provider(config);
239
237
    io_provider.io(url, y_config);