~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-04-11 15:46:35 UTC
  • mfrom: (12510.8.41 js-usage)
  • Revision ID: launchpad@pqm.canonical.com-20110411154635-vru5up8c5adbz3tl
[r=deryck][bug=732639] Allow inline editing of translation settings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
        // The uri needs to be relative, so that the vocabulary
338
338
        // has the same context as the form. Some vocabularies
339
339
        // use the context to limit the results to the same project.
340
 
        var uri = '@@+huge-vocabulary?' + qs;
 
340
 
 
341
        var uri = '';
 
342
        if (Y.Lang.isValue(config['context'])){
 
343
            uri += Y.lp.get_url_path(config['context'].get('web_link')) + '/';
 
344
        }
 
345
        uri += '@@+huge-vocabulary?' + qs;
341
346
 
342
347
        Y.io(uri, {
343
348
            headers: {'Accept': 'application/json'},