Code:
define('custom:views/site/navbar', 'views/site/navbar', function(Dep) { return Dep.extend({ afterRender: function() { Dep.prototype.afterRender.call(this); this.$navbar.find('ul.nav.navbar-nav.navbar-right').append( '<a style="cursor: pointer;" class="top-nav-envelope"><i class="fas fa-envelope"></i></a>' ); }, setup: function() { Dep.prototype.setup.call(this); }, events: { 'click a[class="top-nav-envelope"]': function(e) { this.notify('Loading...'); }, } }); });
Leave a comment: