|
@@ -12,7 +12,7 @@ $medicaidStates = Config::get('constants.medicaid_states');
|
|
|
color: rgb(0, 54, 175);
|
|
|
}
|
|
|
.form-control:focus {
|
|
|
- color: rgb(0, 54, 175);
|
|
|
+ color: rgb(0, 54, 175);
|
|
|
}
|
|
|
</style>
|
|
|
|
|
@@ -117,10 +117,12 @@ $medicaidStates = Config::get('constants.medicaid_states');
|
|
|
});
|
|
|
},
|
|
|
initOnInputChange: function() {
|
|
|
+ var self = this;
|
|
|
var form = $('#createNewPatientForm');
|
|
|
- form.find('input[type=text],textarea').change(function() {
|
|
|
+ form.find('input,textarea').on('paste change', function() {
|
|
|
var value = this.value.replace(/\s\s+/g, ' ');
|
|
|
value = value.trim();
|
|
|
+ self.form[this.name] = value;
|
|
|
$(this).val(value);
|
|
|
});
|
|
|
},
|