~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/structuralsubscription.py

[r=benji][bug=795573,
 796233] On DistroSeries:+localpackagediffs ensure that the comment
 form is hidden after adding a new comment to a DistroSeriesDifference,
 prevent empty comments from being submitted,
 and add some animations and effects to make the UI less jarring and easier to
 follow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
431
431
def expose_user_administered_teams_to_js(request, user, context,
432
432
        absoluteURL=absoluteURL):
433
433
    """Make the list of teams the user administers available to JavaScript."""
434
 
    # XXX: Robert Collins workaround multiple calls making this cause timeouts:
435
 
    # see bug 788510.
 
434
    # XXX: Robert Collins workaround multiple calls making this cause
 
435
    # timeouts: see bug 788510.
436
436
    objects = IJSONRequestCache(request).objects
437
437
    if 'administratedTeams' in objects:
438
438
        return
461
461
                    not team.inTeam(bug_supervisor)):
462
462
                    continue
463
463
                info.append({
 
464
                    'has_preferredemail': team.preferredemail is not None,
464
465
                    'link': absoluteURL(team, api_request),
465
466
                    'title': team.title,
466
467
                    'url': canonical_url(team),