diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-31 10:55:43 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-31 10:55:43 +0200 |
commit | 42c7abd6efcdc604f41b9f5b6440b7b9abfd2bf1 (patch) | |
tree | 9bd22bc770328f0f49c1a829a25959e3845fb31c | |
parent | 37beb806ba5db13965b35802475a85d603d012ef (diff) | |
download | rpg-42c7abd6efcdc604f41b9f5b6440b7b9abfd2bf1.tar.gz rpg-42c7abd6efcdc604f41b9f5b6440b7b9abfd2bf1.tar.bz2 |
moved toolbar out of form scope #757
This ensures that the save button stays the default button of the
form again.
darcs-hash:20060331085543-7ad00-8db519b51a7bc65479ebc6b303f3cf016f8088be.gz
-rw-r--r-- | inc/html.php | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/inc/html.php b/inc/html.php index 6d7090c6d..908849d2b 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1031,26 +1031,30 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? ?> <div style="width:99%;"> - <form id="dw__editform" method="post" action="<?php echo script()?>" accept-charset="<?php echo $lang['encoding']?>"><div class="no"> - <div class="toolbar"> - <div id="draft__status"><?php if($INFO['draft']) echo $lang['draftdate'].' '.date($conf['dformat']);?></div> - <div id="tool__bar"></div> - <input type="hidden" name="id" value="<?php echo $ID?>" /> - <input type="hidden" name="rev" value="<?php echo $REV?>" /> - <input type="hidden" name="date" value="<?php echo $DATE?>" /> - <input type="hidden" name="prefix" value="<?php echo formText($PRE)?>" /> - <input type="hidden" name="suffix" value="<?php echo formText($SUF)?>" /> - - <?php if($wr){?> - <script type="text/javascript" charset="utf-8"> - <?php /* sets changed to true when previewed */?> - textChanged = <?php ($pr) ? print 'true' : print 'false' ?>; - </script> - <span id="spell__action"></span> - <div id="spell__suggest"></div> - <?php } ?> + + <div class="toolbar"> + <div id="draft__status"><?php if($INFO['draft']) echo $lang['draftdate'].' '.date($conf['dformat']);?></div> + <div id="tool__bar"></div> + + <?php if($wr){?> + <script type="text/javascript" charset="utf-8"> + <?php /* sets changed to true when previewed */?> + textChanged = <?php ($pr) ? print 'true' : print 'false' ?>; + </script> + <span id="spell__action"></span> + <div id="spell__suggest"></div> + <?php } ?> + </div> + <div id="spell__result"></div> + + + <form id="dw__editform" method="post" action="<?php echo script()?>" accept-charset="<?php echo $lang['encoding']?>"><div class="no"> + <input type="hidden" name="id" value="<?php echo $ID?>" /> + <input type="hidden" name="rev" value="<?php echo $REV?>" /> + <input type="hidden" name="date" value="<?php echo $DATE?>" /> + <input type="hidden" name="prefix" value="<?php echo formText($PRE)?>" /> + <input type="hidden" name="suffix" value="<?php echo formText($SUF)?>" /> </div> - <div id="spell__result"></div> <textarea name="wikitext" id="wiki__text" <?php echo $ro?> cols="80" rows="10" class="edit" tabindex="1"><?php echo "\n".formText($text)?></textarea> @@ -1060,7 +1064,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? <div class="editButtons"> <input class="button" id="edbtn__save" type="submit" name="do" value="<?php echo $lang['btn_save']?>" accesskey="s" title="[ALT+S]" tabindex="4" /> <input class="button" id="edbtn__preview" type="submit" name="do" value="<?php echo $lang['btn_preview']?>" accesskey="p" title="[ALT+P]" tabindex="5" /> - <input class="button" type="submit" name="do[draftdel]" value="<?php echo $lang['btn_cancel']?>" tabindex="5" /> + <input class="button" type="submit" name="do[draftdel]" value="<?php echo $lang['btn_cancel']?>" tabindex="6" /> </div> <?php } ?> <?php if($wr){ ?> @@ -1071,7 +1075,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? </div> <?php }?> </div> - </div></form> + </form> </div> <?php } |