couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [2/3] git commit: updated refs/heads/master to 3a678ce
Date Wed, 15 May 2013 08:53:59 GMT
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 <deathbearbrown@gmail.com>
Authored: Mon Apr 8 09:53:25 2013 -0400
Committer: suelockwood <deathbearbrown@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
       };


Mime
View raw message