1672
1672
config, subscription_info, 0,
1673
1673
filter_info, filter_id, anim_node);
1674
1674
Y.lazr.anim.green_flash({node: anim_node}).run();
1676
// Since there is no filter description to update we need another
1677
// way to tell the user that the subscription was sucessfully
1678
// added. We'll do that by creating an informational message box.
1679
var description = filter.get('description');
1680
var header = Y.Node.create('<div/>')
1681
.setStyle('marginBottom', '1em')
1682
.append('The subscription')
1683
.append(' '); // a space
1687
.append(Y.Node.create('<span/>')
1688
.set('text', description))
1690
.append(' '); // a space
1692
header.append('has been created.');
1694
Y.one('#request-notifications')
1696
.append(Y.Node.create('<div/>')
1697
// We're creating an informational message box.
1698
.addClass('informational')
1699
.addClass('message')
1700
// The box needs to be a little wider to accomodate the
1701
// wordy subscription description.
1702
.setStyle('width', '50em')
1704
.append(create_filter_description(filter.getAttrs())));