summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbearbrown@gmail.com>2013-04-08 09:48:30 -0400
committersuelockwood <deathbearbrown@gmail.com>2013-04-08 09:48:30 -0400
commit8d75e2bc2ab54510b65f1d57883ebaa801dd50cc (patch)
tree9eb7ecdf3410bed9e6ba215a8daa323977f17d6a
parente65d7b733cb31f59a5aac0d92ad23ebc21140593 (diff)
downloadcouchdb-8d75e2bc2ab54510b65f1d57883ebaa801dd50cc.tar.gz
Let Notifications take a custom template option.
-rw-r--r--src/fauxton/app/modules/fauxton/base.js2
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() {