removed blur detection, started work on alternative

pull/730/head
Justin Richer 2014-10-23 23:23:57 -04:00
parent d7f8a846c3
commit d9d9903c55
2 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,6 @@ var ListWidgetView = Backbone.View.extend({
events:{
"click .btn-add-list-item":"addItem",
"blur input": "addItem",
"keypress":function (e) {
// trap the enter key
if (e.which == 13) {

View File

@ -801,6 +801,10 @@ var ClientFormView = Backbone.View.extend({
$('.control-group').removeClass('error');
// build the scope object
var extraScope = $('#scope input').val();
if (extraScope) {
this.scopeCollection.add(new ListWidgetItem(extraScope));
}
var scopes = this.scopeCollection.pluck("item");
// build the grant type object