You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/03/14 16:06:15 UTC
couchdb commit: updated
refs/heads/2128-config-validation-autocomplete to ba7b7cf
Repository: couchdb
Updated Branches:
refs/heads/2128-config-validation-autocomplete add32d646 -> ba7b7cfc0
Updating selectors with the js-prefix
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/ba7b7cfc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/ba7b7cfc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/ba7b7cfc
Branch: refs/heads/2128-config-validation-autocomplete
Commit: ba7b7cfc0f90ffda603eb7aed03e19fa904c925c
Parents: add32d6
Author: suelockwood <de...@apache.org>
Authored: Fri Mar 14 11:04:26 2014 -0400
Committer: suelockwood <de...@apache.org>
Committed: Fri Mar 14 11:06:08 2014 -0400
----------------------------------------------------------------------
src/fauxton/app/addons/config/templates/dashboard.html | 2 +-
src/fauxton/app/addons/config/templates/modal.html | 4 ++--
src/fauxton/app/addons/config/views.js | 10 +++++-----
3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/ba7b7cfc/src/fauxton/app/addons/config/templates/dashboard.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/config/templates/dashboard.html b/src/fauxton/app/addons/config/templates/dashboard.html
index ca03baf..37ae634 100644
--- a/src/fauxton/app/addons/config/templates/dashboard.html
+++ b/src/fauxton/app/addons/config/templates/dashboard.html
@@ -13,7 +13,7 @@ the License.
-->
<div class="row">
- <button id="add-section" href="#" class="btn btn-primary pull-right">
+ <button id="js-add-section" href="#" class="btn btn-primary pull-right">
<i class="icon icon-plus icon-white"> </i>
Add Section
</button>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/ba7b7cfc/src/fauxton/app/addons/config/templates/modal.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/config/templates/modal.html b/src/fauxton/app/addons/config/templates/modal.html
index 2ba53ca..f32bd10 100644
--- a/src/fauxton/app/addons/config/templates/modal.html
+++ b/src/fauxton/app/addons/config/templates/modal.html
@@ -17,8 +17,8 @@ the License.
<h3>Create Config Option</h3>
</div>
<div class="modal-body">
- <div class="form-error-config"></div>
- <form id="add-section-form" class="form well">
+ <div class="js-form-error-config"></div>
+ <form id="js-add-section-form" class="form well">
<label>Section</label>
<input type="text" name="section" placeholder="Section" >
<span class="help-block">Enter an existing section name to add to it.</span>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/ba7b7cfc/src/fauxton/app/addons/config/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/config/views.js b/src/fauxton/app/addons/config/views.js
index 2f381a7..0468cd1 100644
--- a/src/fauxton/app/addons/config/views.js
+++ b/src/fauxton/app/addons/config/views.js
@@ -85,7 +85,7 @@ function(app, FauxtonAPI, Config, Components) {
template: "addons/config/templates/dashboard",
events: {
- "click #add-section": "addSection"
+ "click #js-add-section": "addSection"
},
initialize: function(){
@@ -127,7 +127,7 @@ function(app, FauxtonAPI, Config, Components) {
className: "modal hide fade",
template: "addons/config/templates/modal",
events: {
- "submit #add-section-form": "validate"
+ "submit #js-add-section-form": "validate"
},
initialize: function(){
this.sourceArray = _.map(this.collection.toJSON(), function(item, key){
@@ -203,14 +203,14 @@ function(app, FauxtonAPI, Config, Components) {
msg: msg,
type: "error",
clear: true,
- selector: ".form-error-config"
+ selector: ".js-form-error-config"
});
},
show: function(){
- $(this.el).modal({show:true});
+ this.$el.modal({show:true});
},
hide: function(){
- $(this.el).modal('hide');
+ this.$el.modal('hide');
}
});