Working : upload image : fix fallback and delete links on refresh

This commit is contained in:
gmorel
2013-09-23 17:25:31 +02:00
parent 3cb7289848
commit 21e6f3471c
2 changed files with 4 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ $(function($){
$imageListArea.html(
data
);
$.imageUploadManager.onClickDeleteImage();
});
};

View File

@@ -11,6 +11,7 @@ Parameters:
<form action="{url path="/admin/image/type/$imageType/$parentId/save-ajax"}" class="dropzone" id="images-dropzone" enctype="multipart/form-data">
<div class="fallback">
<input name="file" type="file" multiple />
<button type="submit" class="btn btn-info btn-upload"><span class="glyphicon glyphicon-send"></span> {intl l="Send files"}</button>
</div>
<div class="btn-browse hide">
@@ -18,6 +19,8 @@ Parameters:
<span>Or</span>
<button type="button" class="btn btn-info btn-upload"><span class="glyphicon glyphicon-upload"></span> {intl l="Browse files"}</button>
</div>
</form>
<div class="existing-image">