Procházet zdrojové kódy

Merge branch 'dev' of rav.triplestart.com:jmudaka/stagfe2 into dev

= před 3 roky
rodič
revize
9755661655

+ 4 - 2
resources/views/app/new-patient.blade.php

@@ -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);
 				});
 			},

+ 1 - 1
resources/views/app/patient/create-patient/demographics-form.blade.php

@@ -145,4 +145,4 @@
 		<input type='checkbox' name='isTestRecord' />
 		This is a test record
 	</label>
-</div>
+</div>