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

index 50aeda3e10f2135824a8150579ff83c4d3d548cf..d62269098712f448d43e05b201f89ed894322a7f 100644 (file)
@@ -396,7 +396,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
                                     }