suppression du message formulaire (ref #240)
This commit is contained in:
parent
1209c90388
commit
3fc0a1b809
@ -300,7 +300,9 @@ class FileController extends Controller
|
||||
|
||||
$urlsource= $fulldirectory."/".$oldname;
|
||||
$urldestination = $fulldirectory."/".$data["subdirectory"];
|
||||
|
||||
if($urlsource!=$urldestination) {
|
||||
|
||||
if($fs->exists($urldestination)) {
|
||||
$form->addError(new FormError('Ce nom existe déjà'));
|
||||
$this->get('session')->getFlashBag()->clear();
|
||||
@ -325,7 +327,7 @@ class FileController extends Controller
|
||||
if($fs->exists($urlsource))
|
||||
$fs->rename($urlsource,$urldestination,true);
|
||||
}
|
||||
|
||||
|
||||
$toclose=true;
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,8 @@
|
||||
|
||||
$('document').ready(function(){
|
||||
{% if toclose %}
|
||||
parent.location.reload();
|
||||
href=parent.location.href;
|
||||
parent.location.href=href;
|
||||
{% endif %}
|
||||
$("#form_subdirectory").focus();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user