]> git.mjollnir.org Git - s9y.git/commitdiff
show media popup
authorgarvinhicking <garvinhicking>
Tue, 25 Apr 2006 11:59:45 +0000 (11:59 +0000)
committergarvinhicking <garvinhicking>
Tue, 25 Apr 2006 11:59:45 +0000 (11:59 +0000)
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php

index 6367fdb4d24aabc1a5dfd49f5111c8a1443fe666..9c953cecc86e66fd89026ee997bec99a60e5630e 100644 (file)
@@ -348,7 +348,8 @@ class serendipity_event_entryproperties extends serendipity_event
                             ?>
                                 <tr>
                                     <td class="customfield_<?php echo $fieldname; ?> customfield_name"><strong><?php echo $fieldname; ?></strong></td>
-                                    <td class="customfield_<?php echo $fieldname; ?> customfield_value"><textarea name="serendipity[properties][<?php echo htmlspecialchars($fieldname); ?>]"><?php echo htmlspecialchars($value); ?></textarea></td>
+                                    <td class="customfield_<?php echo $fieldname; ?> customfield_value"><textarea id="prop<?php echo htmlspecialchars($fieldname); ?>" name="serendipity[properties][<?php echo htmlspecialchars($fieldname); ?>]"><?php echo htmlspecialchars($value); ?></textarea></td>
+                                    <td valign="top"><script type="text/javascript" language="JavaScript">document.write('<input type="button" name="insImage" value="<?php echo IMAGE ; ?>" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[htmltarget]=prop<?php echo htmlspecialchars($fieldname); ?>&amp;serendipity[filename_only]=true\', \'ImageSel\', \'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1\');" class="serendipityPrettyButton" />');</script></td>
                                 </tr>
                             <?php
                                     }