Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28334
Modified Files:
serendipity_functions.inc.php
Log Message:
Pimp up the theme selector, could use some CSS - but this will have to do for now
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.315
retrieving revision 1.316
diff -u -d -r1.315 -r1.316
--- serendipity_functions.inc.php 5 Jul 2004 12:57:16 -0000 1.315
+++ serendipity_functions.inc.php 5 Jul 2004 20:20:12 -0000 1.316
@@ -167,6 +167,13 @@
function serendipity_printTemplates($themelist) {
global $serendipity;
?>
+<script language="JavaScript" type="text/javascript">
+ function setRadio(id) {
+ if (document.getElementById(id)) {
+ document.getElementById(id).checked = true;
+ }
+ }
+</script>
<div>
<form method="post" action="<?php echo $serendipity['serendipityHTTPPath']; ?>serendipity_admin.php?serendipity[adminModule]=templates&serendipity[adminAction]=save">
<table width="100%" class="prettyTable">
@@ -186,19 +193,19 @@
}
?>
<tr>
- <td colspan="3"><strong><?php echo $info['name']; ?></strong></td>
+ <td colspan="3" onmousedown="setRadio('serendipity_theme_<?php echo $theme; ?>');"><strong><?php echo $info['name']; ?></strong></td>
</tr>
<tr>
- <td width="100"><?php echo $preview; ?></td>
+ <td width="100" onmousedown="setRadio('serendipity_theme_<?php echo $theme; ?>');"><?php echo $preview; ?></td>
- <td valign="top">
+ <td valign="top" onmousedown="setRadio('serendipity_theme_<?php echo $theme; ?>');">
<?php echo AUTHOR; ?> : <?php echo $info['author'];?><br />
<?php echo LAST_UPDATED; ?>: <?php echo $info['date']; ?>
</td>
- <td valign="middle">
- <div><input type="radio" name="serendipity[theme]" value="<?php echo $theme; ?>" <?php echo $is_active; ?> /></div>
+ <td valign="middle" onmousedown="setRadio('serendipity_theme_<?php echo $theme; ?>');">
+ <div><input type="radio" name="serendipity[theme]" value="<?php echo $theme; ?>" id="serendipity_theme_<?php echo $theme; ?>" <?php echo $is_active; ?> /></div>
</td>
</tr>
<?php
|