@ -1177,8 +1177,12 @@ function rcube_webmail()
case 'import-messages' :
var form = props || this . gui _objects . importform ;
$ ( 'input[name="_unlock"]' , form ) . val ( this . set _busy ( true , 'importwait' ) ) ;
this . upload _file ( form , 'import' ) ;
var importlock = this . set _busy ( true , 'importwait' ) ;
$ ( 'input[name="_unlock"]' , form ) . val ( importlock ) ;
if ( ! this . upload _file ( form , 'import' ) ) {
this . set _busy ( false , null , importlock ) ;
alert ( this . get _label ( 'selectimportfile' ) ) ;
}
break ;
case 'import' :
@ -4015,11 +4019,13 @@ function rcube_webmail()
if ( this . env . upload _progress _time ) {
this . upload _progress _start ( 'upload' , ts ) ;
}
}
// set reference to the form object
this . gui _objects . attachmentform = form ;
return true ;
}
return false ;
} ;
// add file name to attachment list
@ -4061,8 +4067,10 @@ function rcube_webmail()
this . remove _from _attachment _list = function ( name )
{
if ( this . env . attachments ) {
delete this . env . attachments [ name ] ;
$ ( '#' + name ) . remove ( ) ;
}
} ;
this . remove _attachment = function ( name )