diff options
-rw-r--r-- | src/fauxton/app/addons/config/templates/dashboard.html | 2 | ||||
-rw-r--r-- | src/fauxton/app/addons/config/templates/modal.html | 4 | ||||
-rw-r--r-- | src/fauxton/app/addons/config/views.js | 10 |
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'); } }); |