@ -187,16 +187,7 @@ Contacts={
}
}
] ) ;
] ) ;
/ * $ ( ' # f n ' ) . b l u r ( f u n c t i o n ( ) {
if ( $ ( '#fn' ) . val ( ) == '' ) {
OC . dialogs . alert ( t ( 'contacts' , 'The name field cannot be empty. Please enter a name for this contact.' ) , t ( 'contacts' , 'Name is empty' ) , function ( ) { $ ( '#fn' ) . focus ( ) ; } ) ;
$ ( '#fn' ) . focus ( ) ;
return false ;
}
} ) ; * /
// Name has changed. Update it and reorder.
// Name has changed. Update it and reorder.
// TODO: Take addressbook into account
$ ( '#fn' ) . change ( function ( ) {
$ ( '#fn' ) . change ( function ( ) {
var name = $ ( '#fn' ) . val ( ) . strip _tags ( ) ;
var name = $ ( '#fn' ) . val ( ) . strip _tags ( ) ;
var item = $ ( '.contacts li[data-id="' + Contacts . UI . Card . id + '"]' ) ;
var item = $ ( '.contacts li[data-id="' + Contacts . UI . Card . id + '"]' ) ;