You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/05/15 10:53:59 UTC

[2/3] git commit: updated refs/heads/master to 3a678ce

Added the option to pass in a data.  Data is serialized and will be accessible to the template.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/c38ea8ad
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/c38ea8ad
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/c38ea8ad

Branch: refs/heads/master
Commit: c38ea8ada39116d05f4f2bea7b5dd1c4e93a2b5e
Parents: 8d75e2b
Author: suelockwood <de...@gmail.com>
Authored: Mon Apr 8 09:53:25 2013 -0400
Committer: suelockwood <de...@gmail.com>
Committed: Mon Apr 8 09:53:25 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/modules/fauxton/base.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/c38ea8ad/src/fauxton/app/modules/fauxton/base.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/fauxton/base.js b/src/fauxton/app/modules/fauxton/base.js
index a909392..0bd6ae5 100644
--- a/src/fauxton/app/modules/fauxton/base.js
+++ b/src/fauxton/app/modules/fauxton/base.js
@@ -99,11 +99,13 @@ function(app, Backbone) {
       this.selector = options.selector;
       this.fade = options.fade === undefined ? true : options.fade;
       this.clear = options.clear;
+      this.data = options.data || "";
       this.template = options.template || "templates/fauxton/notification";
     },
 
     serialize: function() {
       return {
+        data: this.data,
         msg: this.msg,
         type: this.type
       };