~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 20:18:00 UTC
  • mto: This revision was merged to the branch mainline in revision 14648.
  • Revision ID: rick.harding@canonical.com-20120105201800-5w69pe37m68odybf
Add support for a context-less request in the buglisting 

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();
228
229
    var url = module.get_view_url(entry, view_name, 'model', query);
229
230
    var old_on_success = config.on.success;
230
231
    var on = config.on;
231
232
    on.success = module.wrap_resource_on_success;
 
233
 
232
234
    var y_config = {
233
235
        on: on,
234
 
        'arguments': [entry.lp_client, url, old_on_success, false]
 
236
        'arguments': [lp_client, url, old_on_success, false]
235
237
    };
236
238
    var io_provider = module.get_configured_io_provider(config);
237
239
    io_provider.io(url, y_config);