~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/buglisting.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-07 21:04:43 UTC
  • mfrom: (14444.1.2 fix-spinner-bugs)
  • Revision ID: launchpad@pqm.canonical.com-20111207210443-tmm8rdd6bsxg94u1
[r=deryck][bug=900480,900773] Fix new spinner bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
            'change', this.history_changed, this);
163
163
    },
164
164
 
165
 
    get_failure_handler: function(){
 
165
    get_failure_handler: function(fetch_only){
166
166
        var error_handler = new Y.lp.client.ErrorHandler();
167
167
        error_handler.showError = Y.bind(
168
168
            Y.lp.app.errors.display_error, window, null);
169
 
        this.indicator.error();
 
169
        if (!fetch_only){
 
170
            error_handler.clearProgressUI = Y.bind(
 
171
                this.indicator.error, this.indicator
 
172
            );
 
173
        }
170
174
        return error_handler.getFailureHandler();
171
175
    },
172
176
 
333
337
     * will be retrieved and cached upon retrieval.
334
338
     */
335
339
    update: function(config) {
336
 
        this.indicator.setBusy();
 
340
        if (!config.fetch_only){
 
341
            this.indicator.setBusy();
 
342
        }
337
343
 
338
344
        var key = this.constructor.get_batch_key(config);
339
345
        var cached_batch = this.get('batches')[key];
451
457
            on: {
452
458
                success: Y.bind(
453
459
                    this.update_from_new_model, this, query, fetch_only),
454
 
                failure: this.get_failure_handler()
 
460
                failure: this.get_failure_handler(fetch_only)
455
461
            }
456
462
        };
457
463
        var context = this.get_current_batch().context;
496
502
 */
497
503
namespace.ListingNavigator.from_page = function() {
498
504
    var target = Y.one('#client-listing');
 
505
    if (Y.Lang.isNull(target)){
 
506
        return null;
 
507
    }
499
508
    var navigation_indices = Y.all('.batch-navigation-index');
500
509
    var pre_fetch = get_feature_flag('bugs.dynamic_bug_listings.pre_fetch');
501
510
    namespace.linkify_navigation();