fix JS errors in scope management page

pull/576/merge
Justin Richer 2014-04-10 21:36:10 -04:00
parent 292b160918
commit 78ae6ff322
2 changed files with 2 additions and 5 deletions

View File

@ -158,13 +158,11 @@ var SystemScopeListView = Backbone.View.extend({
},
newScope:function(e) {
e.preventDefault();
this.remove();
app.navigate('admin/scope/new', {trigger: true});
},
refreshTable:function(e) {
e.preventDefault();
var _self = this;
$('#loadingbox').sheet('show');
$('#loading').html('<span class="label" id="loading-scopes">Scopes</span> ');
@ -257,7 +255,6 @@ var SystemScopeFormView = Backbone.View.extend({
},
toggleStructuredParamDescription:function(e) {
e.preventDefault();
if ($('#isStructured input', this.el).is(':checked')) {
$('#structuredParamDescription', this.el).show();
} else {
@ -329,7 +326,7 @@ var SystemScopeFormView = Backbone.View.extend({
selectIcon:function(e) {
e.preventDefault();
var icon = event.target.value;
var icon = e.target.value;
$('#iconDisplay input').val(icon);
$('#iconDisplay span').html(icon);

View File

@ -59,7 +59,7 @@
<% } %>
<%= value %>
</span>
<blockquote><small><%= description %></small></blockquote>
<p><small><%= description %></small></p>
</td>
<td>