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;
|
$urlsource= $fulldirectory."/".$oldname;
|
||||||
$urldestination = $fulldirectory."/".$data["subdirectory"];
|
$urldestination = $fulldirectory."/".$data["subdirectory"];
|
||||||
|
|
||||||
if($urlsource!=$urldestination) {
|
if($urlsource!=$urldestination) {
|
||||||
|
|
||||||
if($fs->exists($urldestination)) {
|
if($fs->exists($urldestination)) {
|
||||||
$form->addError(new FormError('Ce nom existe déjà'));
|
$form->addError(new FormError('Ce nom existe déjà'));
|
||||||
$this->get('session')->getFlashBag()->clear();
|
$this->get('session')->getFlashBag()->clear();
|
||||||
|
|
|
@ -46,7 +46,8 @@
|
||||||
|
|
||||||
$('document').ready(function(){
|
$('document').ready(function(){
|
||||||
{% if toclose %}
|
{% if toclose %}
|
||||||
parent.location.reload();
|
href=parent.location.href;
|
||||||
|
parent.location.href=href;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
$("#form_subdirectory").focus();
|
$("#form_subdirectory").focus();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue