visual error indicators for redirect uri and scope

pull/210/head
Michael Jett 2012-08-29 13:54:04 -04:00
parent 15359a236a
commit 4fcbbe639f
2 changed files with 5 additions and 1 deletions

View File

@ -89,6 +89,9 @@
// if it's valid and doesn't already exist
if (model.isValid() && this.collection.where({item: input_value}).length < 1) {
this.collection.add(model);
} else {
// add a visual error indicator
$(".control-group", this.el).addClass('error')
}
},

View File

@ -225,7 +225,8 @@
<script type="text/html" id="tmpl-list-widget">
<tbody>
<tr>
<td><input type="text" value="" placeholder="<%=(placeholder) ? placeholder : ''%>"></td>
<td class="control-group">
<input type="text" value="" placeholder="<%=(placeholder) ? placeholder : ''%>"></td>
<td><button class="btn btn-small" type="button">Add</button></td>
</tr>
</tbody>