1
0

Use correct media db overlay for extended entry properties.

References #110
This commit is contained in:
Matthias Mees
2014-04-28 15:51:14 +02:00
parent e4a0830ad1
commit 9c061a77ae
2 changed files with 2 additions and 2 deletions

View File

@@ -459,7 +459,7 @@ class serendipity_event_entryproperties extends serendipity_event
<div id="ep_column_<?php echo $fieldname; ?>" class="clearfix form_area"> <div id="ep_column_<?php echo $fieldname; ?>" class="clearfix form_area">
<label for="prop<?php echo $fieldname; ?>"><?php echo $fieldname; ?></label> <label for="prop<?php echo $fieldname; ?>"><?php echo $fieldname; ?></label>
<textarea id="prop<?php echo $fieldname; ?>" name="serendipity[properties][<?php echo $fieldname; ?>]"><?php echo htmlspecialchars($value); ?></textarea> <textarea id="prop<?php echo $fieldname; ?>" name="serendipity[properties][<?php echo $fieldname; ?>]"><?php echo htmlspecialchars($value); ?></textarea>
<input class="customfieldMedia" type="button" name="insImage" value="<?php echo MEDIA ; ?>" data-tarea="prop<?php echo $fieldname; ?>"> <button class="customfieldMedia" type="button" name="insImage" title="<?php echo MEDIA ; ?>"><span class="icon-picture"></span><span class="visuallyhidden"><?php echo MEDIA ; ?></span></button>
</div> </div>
<?php <?php
} }

View File

@@ -162,7 +162,7 @@
// Opens media db image selection in new window // Opens media db image selection in new window
serendipity.choose_media = function(id) { serendipity.choose_media = function(id) {
serendipity.openPopup('serendipity_admin_image_selector.php?serendipity[htmltarget]=' + id + '&serendipity[filename_only]=true'); serendipity.openPopup('serendipity_admin.php?serendipity[adminModule]=media&serendipity[noBanner]=true&serendipity[noSidebar]=true&serendipity[noFooter]=true&serendipity[showMediaToolbar]=false&serendipity[htmltarget]=' + id + '&serendipity[filename_only]=true');
} }
// "Transfer" value from media db popup to form element, used for example for selecting a category-icon // "Transfer" value from media db popup to form element, used for example for selecting a category-icon