~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/javascript/structural-subscription.js

[r=deryck][bug=902252] No exception when structural subscriptions
 disabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
575
575
                .set('size', '50'))
576
576
            .append(Y.Node.create('<a/>')
577
577
                .set('target', 'help')
578
 
                .set('href', '/+help-registry/structural-subscription-tags.html')
 
578
                .set(
 
579
                    'href', '/+help-registry/structural-subscription-tags'
 
580
                    + '.html')
579
581
                .addClass('sprite')
580
582
                .addClass('maybe')
581
583
                .append(Y.Node.create('<span/>')
779
781
        '  <dd>' +
780
782
        '    <input type="text" name="name">' +
781
783
        '    <a target="help" class="sprite maybe"' +
782
 
        '          href="/+help-registry/structural-subscription-name.html">&nbsp;' +
 
784
        '          href="/+help-registry/structural-subscription-name' +
 
785
        '.html">&nbsp;' +
783
786
        '      <span class="invisible-link">Structural subscription' +
784
787
        '        description help</span></a> ' +
785
788
        '  </dd>' +
1836
1839
    // Modify the menu-link-subscribe-to-bug-mail link to be visible.
1837
1840
    var link = Y.one(link_id);
1838
1841
    if (!Y.Lang.isValue(link)) {
1839
 
        Y.error('Link to set as the pop-up link not found.');
 
1842
        Y.log('No structural subscription link found.', 'debug');
 
1843
        return;
1840
1844
    }
1841
1845
    link.removeClass('invisible-link');
1842
1846
    link.addClass('visible-link');