~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/templates/bugtask-macros-tableview.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-23 02:58:37 UTC
  • mfrom: (14582.1.1 back_sort_buttons_907376)
  • Revision ID: launchpad@pqm.canonical.com-20111223025837-8bnow1cnbzp8msbz
[testfix][r=deryck][rollback=14569] back out fix for bug 907376 due
        to bad fix with has_key vs hasKey

Show diffs side-by-side

added added

removed removed

Lines of Context:
694
694
            var model = navigator.get('model');
695
695
            model.get('history').after(
696
696
                'change', function(e) {
697
 
                    // Only update the sort buttons if we've got a valid batch
698
 
                    // key.
699
 
                    if (Y.Object.has_key(e.newVal, 'batch_key')) {
700
 
                        Y.lp.buglisting_utils.update_sort_button_visibility(
701
 
                            orderby,
702
 
                            e.newVal
703
 
                        );
704
 
                    }
705
 
                 }
706
 
            );
 
697
                     Y.lp.buglisting_utils.update_sort_button_visibility(
 
698
                         orderby, e.newVal);
 
699
                });
707
700
            var config_node = orderby.get('config_node');
708
701
            var list_util = new Y.lp.buglisting_utils.BugListingConfigUtil({
709
702
                srcNode: config_node,