parent
9c061a77ae
commit
7b5ef26e7e
@ -59,7 +59,8 @@
|
||||
|
||||
<input id="serendipity[{$postKey}][{$config_item}]" class="change_preview" name="serendipity[{$postKey}][{$config_item}]" type="text" data-configitem="{$config_item}" data-pmwidth="{$preview_width}" data-pmheight="{$preview_height}" value="{$value}">{* This should maybe be input[type=file] *}
|
||||
|
||||
<a class="button_link choose_media" href="#serendipity[{$postKey}][{$config_item}]" title="{$CONST.MEDIA_LIBRARY}"><span class="icon-picture"></span><span class="visuallyhidden"> {$CONST.MEDIA_LIBRARY}</span></a>
|
||||
<button class="icon_link choose_media" type="button" title="{$CONST.MEDIA_LIBRARY}"><span class="icon-picture"></span><span class="visuallyhidden">{$CONST.MEDIA_LIBRARY}</span></a>
|
||||
|
||||
{if $cdesc != ''}<span id="{$postKey}_{$config_item}_info" class="field_info additional_info">{$cdesc}</span>{/if}
|
||||
</div>
|
||||
{elseif $ctype == 'sequence'}
|
||||
|
@ -1104,10 +1104,9 @@ $(function() {
|
||||
serendipity.change_preview($(this).attr('data-configitem'));
|
||||
});
|
||||
|
||||
$('.choose_media').click(function(e) {
|
||||
$('.choose_media').click(function() {
|
||||
var configitem = $(this).parent().find('.change_preview').attr('id');
|
||||
serendipity.choose_media(configitem);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('.customfieldMedia').click(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user