1
0
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:
Hillel Coren 2014-02-06 23:55:54 +02:00
parent b34dce5170
commit aea7113a24
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@
{{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }} {{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }}
{{ Former::text('first_name')->data_bind("value: first_name, 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('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'") }} {{ Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown'") }}
<div class="form-group"> <div class="form-group">

View File

@ -312,7 +312,7 @@
{{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }} {{ Former::hidden('public_id')->data_bind("value: public_id, valueUpdate: 'afterkeydown'") }}
{{ Former::text('first_name')->data_bind("value: first_name, 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('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'") }} {{ Former::text('phone')->data_bind("value: phone, valueUpdate: 'afterkeydown'") }}
<div class="form-group"> <div class="form-group">
@ -823,7 +823,7 @@
self.clientFormComplete = function() { self.clientFormComplete = function() {
var isValid = true; var isValid = true;
$("input[id='email']").each(function(item, value) { $("input[name='email']").each(function(item, value) {
var email = $(value).val(); var email = $(value).val();
if (!email || !isValidEmailAddress(email)) { if (!email || !isValidEmailAddress(email)) {
isValid = false; isValid = false;
@ -834,7 +834,7 @@
return; return;
} }
var email = $('#email').val(); var email = $('#email0').val();
var firstName = $('#first_name').val(); var firstName = $('#first_name').val();
var lastName = $('#last_name').val(); var lastName = $('#last_name').val();
var name = $('#name').val(); var name = $('#name').val();

View File

@ -15,7 +15,7 @@
"intervention/image": "dev-master", "intervention/image": "dev-master",
"webpatser/laravel-countries": "dev-master", "webpatser/laravel-countries": "dev-master",
"anahkiasen/rocketeer": "dev-develop", "anahkiasen/rocketeer": "dev-develop",
"codeception/codeception": "*" "codeception/codeception": "dev-master"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [

View File

@ -226,4 +226,4 @@ body {
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff; color: #ffffff;
} }
} }