back button for image properties
not so easy, as it should not be shown after uploading
This commit is contained in:
parent
8723224548
commit
82a0d1f4bb
@ -2295,13 +2295,13 @@ function serendipity_showPropertyForm(&$new_media, $keywordsPerBlock = 3, $is_ed
|
||||
|
||||
serendipity_parseMediaProperties($dprops, $keywords, $show[$idx], $props, $keywordsPerBlock, $is_edit);
|
||||
}
|
||||
|
||||
$smarty_vars = array(
|
||||
'is_edit' => $is_edit,
|
||||
'editform_hidden' => $editform_hidden,
|
||||
'keywordsPerBlock' => $keywordsPerBlock,
|
||||
'keywords' => $keywords,
|
||||
'dprops' => $dprops
|
||||
'dprops' => $dprops,
|
||||
'case_add' => is_array($new_media[0]['created_thumbnail']) // created_thumbnail is only set when viewing properties after adding an image
|
||||
);
|
||||
|
||||
return serendipity_showMedia(
|
||||
|
@ -12,6 +12,9 @@
|
||||
{$MEDIA_ITEMS}
|
||||
{if $media.is_edit}
|
||||
<div class="form_buttons">
|
||||
{if NOT $media.case_add}
|
||||
<a class="button_link" href="?serendipity[adminModule]=media">Back</a>
|
||||
{/if}
|
||||
<input name="submit" type="submit" value="{$CONST.GO}">
|
||||
</div>
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user