removed blur detection, started work on alternative
parent
d7f8a846c3
commit
d9d9903c55
|
@ -137,7 +137,6 @@ var ListWidgetView = Backbone.View.extend({
|
||||||
|
|
||||||
events:{
|
events:{
|
||||||
"click .btn-add-list-item":"addItem",
|
"click .btn-add-list-item":"addItem",
|
||||||
"blur input": "addItem",
|
|
||||||
"keypress":function (e) {
|
"keypress":function (e) {
|
||||||
// trap the enter key
|
// trap the enter key
|
||||||
if (e.which == 13) {
|
if (e.which == 13) {
|
||||||
|
|
|
@ -801,6 +801,10 @@ var ClientFormView = Backbone.View.extend({
|
||||||
$('.control-group').removeClass('error');
|
$('.control-group').removeClass('error');
|
||||||
|
|
||||||
// build the scope object
|
// build the scope object
|
||||||
|
var extraScope = $('#scope input').val();
|
||||||
|
if (extraScope) {
|
||||||
|
this.scopeCollection.add(new ListWidgetItem(extraScope));
|
||||||
|
}
|
||||||
var scopes = this.scopeCollection.pluck("item");
|
var scopes = this.scopeCollection.pluck("item");
|
||||||
|
|
||||||
// build the grant type object
|
// build the grant type object
|
||||||
|
|
Loading…
Reference in New Issue