},
modelEvents: {
- 'change': 'render'
+ 'change': 'render',
+ 'flashChangelog': 'flashChangelog'
},
events: {
this.comparisonRegion.show(new ProfileComparisonView({ model: this.model }));
if (this.options.anchor === 'changelog') {
this.scrollToChangelog();
+ this.flashChangelog();
}
if (this.options.anchor === 'comparison') {
this.scrollToComparison();
});
},
+ flashChangelog: function () {
+ var changelogEl = this.$(this.changelogRegion.el);
+ changelogEl.addClass('flash in');
+ setTimeout(function () {
+ changelogEl.removeClass('in');
+ }, 2000);
+ },
+
serializeData: function () {
var key = this.model.get('key'),
rulesSearchUrl = '/coding_rules#qprofile=' + encodeURIComponent(key) + '|activation=true';