diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-04-08 09:48:30 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-04-08 09:48:30 -0400 |
commit | 8d75e2bc2ab54510b65f1d57883ebaa801dd50cc (patch) | |
tree | 9eb7ecdf3410bed9e6ba215a8daa323977f17d6a | |
parent | e65d7b733cb31f59a5aac0d92ad23ebc21140593 (diff) | |
download | couchdb-8d75e2bc2ab54510b65f1d57883ebaa801dd50cc.tar.gz |
Let Notifications take a custom template option.
-rw-r--r-- | src/fauxton/app/modules/fauxton/base.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fauxton/app/modules/fauxton/base.js b/src/fauxton/app/modules/fauxton/base.js index 2526f8038..a90939268 100644 --- a/src/fauxton/app/modules/fauxton/base.js +++ b/src/fauxton/app/modules/fauxton/base.js @@ -91,7 +91,6 @@ function(app, Backbone) { }); Fauxton.Notification = Backbone.View.extend({ - template: "templates/fauxton/notification", fadeTimer: 5000, initialize: function(options) { @@ -100,6 +99,7 @@ function(app, Backbone) { this.selector = options.selector; this.fade = options.fade === undefined ? true : options.fade; this.clear = options.clear; + this.template = options.template || "templates/fauxton/notification"; }, serialize: function() { |