summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbear@apache.org>2014-03-14 11:04:26 -0400
committersuelockwood <deathbear@apache.org>2014-03-14 11:06:08 -0400
commitba7b7cfc0f90ffda603eb7aed03e19fa904c925c (patch)
treea9e6ffe194326f5a6575f4fb30c8d532d3bfddf6
parentadd32d6464eb0ce6391ab49efbbf4d43310e9e35 (diff)
downloadcouchdb-2128-config-validation-autocomplete.tar.gz
Updating selectors with the js-prefix2128-config-validation-autocomplete
-rw-r--r--src/fauxton/app/addons/config/templates/dashboard.html2
-rw-r--r--src/fauxton/app/addons/config/templates/modal.html4
-rw-r--r--src/fauxton/app/addons/config/views.js10
3 files changed, 8 insertions, 8 deletions
diff --git a/src/fauxton/app/addons/config/templates/dashboard.html b/src/fauxton/app/addons/config/templates/dashboard.html
index ca03baf25..37ae634ac 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>
diff --git a/src/fauxton/app/addons/config/templates/modal.html b/src/fauxton/app/addons/config/templates/modal.html
index 2ba53ca3c..f32bd103f 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>
diff --git a/src/fauxton/app/addons/config/views.js b/src/fauxton/app/addons/config/views.js
index 2f381a7b7..0468cd1b3 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');
}
});