mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 00:53:10 +01:00
Added unqiue ids to contact email fields
This commit is contained in:
parent
b34dce5170
commit
aea7113a24
@ -48,7 +48,7 @@
|
||||
{{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('first_name')->data_bind("value: first_name, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('last_name')->data_bind("value: last_name, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('email')->data_bind("value: email, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('email')->data_bind('value: email, valueUpdate: \'afterkeydown\', attr: {id:\'email\'+$index()}') }}
|
||||
{{ Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown'") }}
|
||||
|
||||
<div class="form-group">
|
||||
|
@ -312,7 +312,7 @@
|
||||
{{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('first_name')->data_bind("value: first_name, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('last_name')->data_bind("value: last_name, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('email')->data_bind("value: email, valueUpdate: 'afterkeydown'") }}
|
||||
{{ Former::text('email')->data_bind('value: email, valueUpdate: \'afterkeydown\', attr: {id:\'email\'+$index()}') }}
|
||||
{{ Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown'") }}
|
||||
|
||||
<div class="form-group">
|
||||
@ -823,7 +823,7 @@
|
||||
self.clientFormComplete = function() {
|
||||
|
||||
var isValid = true;
|
||||
$("input[id='email']").each(function(item, value) {
|
||||
$("input[name='email']").each(function(item, value) {
|
||||
var email = $(value).val();
|
||||
if (!email || !isValidEmailAddress(email)) {
|
||||
isValid = false;
|
||||
@ -834,7 +834,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var email = $('#email').val();
|
||||
var email = $('#email0').val();
|
||||
var firstName = $('#first_name').val();
|
||||
var lastName = $('#last_name').val();
|
||||
var name = $('#name').val();
|
||||
|
@ -15,7 +15,7 @@
|
||||
"intervention/image": "dev-master",
|
||||
"webpatser/laravel-countries": "dev-master",
|
||||
"anahkiasen/rocketeer": "dev-develop",
|
||||
"codeception/codeception": "*"
|
||||
"codeception/codeception": "dev-master"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
|
@ -226,4 +226,4 @@ body {
|
||||
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user