mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix #1337 Remove keyup on input
This commit is contained in:
@@ -21,7 +21,8 @@ define([
|
||||
events: {
|
||||
"click .btn-submit-field": "createAction",
|
||||
"click .btn-add-field": "toggleCreateFormAction",
|
||||
"click .btn-cancel-field": "toggleCreateFormAction"
|
||||
"click .btn-cancel-field": "toggleCreateFormAction",
|
||||
"keyup input": "onKeyupInput"
|
||||
},
|
||||
render: function() {
|
||||
var template = _.template($("#create_template").html());
|
||||
@@ -51,6 +52,13 @@ define([
|
||||
|
||||
return this;
|
||||
},
|
||||
onKeyupInput: function (event) {
|
||||
$(event.target)
|
||||
.closest(".control-group")
|
||||
.removeClass("error")
|
||||
.find(".help-block")
|
||||
.empty();
|
||||
},
|
||||
createAction: function(event) {
|
||||
var self = this;
|
||||
var formErrors = 0;
|
||||
|
Reference in New Issue
Block a user