From: <ru...@us...> - 2009-06-04 11:16:57
|
Revision: 6862 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6862&view=rev Author: rurban Date: 2009-06-04 11:16:55 +0000 (Thu, 04 Jun 2009) Log Message: ----------- The id belongs to the checkbox Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2009-06-04 11:07:19 UTC (rev 6861) +++ trunk/themes/default/templates/editpage.tmpl 2009-06-04 11:16:55 UTC (rev 6862) @@ -79,7 +79,7 @@ <?php if ($user->isAdmin()) { ?> <?= $LOCKED_CB ?> <label for="edit-locked" title="<?=_("Make the page read-only?")?>"><?=_("Locked")?></label> <?php if (ENABLE_PAGE_PUBLIC) { ?> - <?= $PUBLIC_CB ?> <label id="edit-public" for="edit-public" title="<?=_("Export to a seperate public area?")?>"><?=_("Public")?></label> + <?= $PUBLIC_CB ?> <label for="edit-public" title="<?=_("Export to a seperate public area?")?>"><?=_("Public")?></label> <?php }} ?> </td> <td colspan="2" align="right"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-07-31 10:39:04
|
Revision: 9041 http://sourceforge.net/p/phpwiki/code/9041 Author: vargenau Date: 2014-07-31 10:39:00 +0000 (Thu, 31 Jul 2014) Log Message: ----------- Whitespace Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2014-07-31 10:34:35 UTC (rev 9040) +++ trunk/themes/default/templates/editpage.tmpl 2014-07-31 10:39:00 UTC (rev 9041) @@ -54,7 +54,7 @@ <?php } ?> <table class="toolbar fullwidth"> <tr class="middle"> - <td> + <td> <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br /> </td> <td class="align-center"> @@ -62,8 +62,8 @@ <?php echo $WYSIWYG_B?><?php echo $SEP?> <?php } ?> <?php echo $PREVIEW_B ?> - <?php if ($SAVE_B) { ?> - <?php echo $SEP?><?php echo $SAVE_B ?> + <?php if ($SAVE_B) { ?> + <?php echo $SEP?> <?php echo $SAVE_B ?> <?php } ?> <?php echo $SEP?><?php echo $CHANGES_B ?> </td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-12-09 17:24:30
|
Revision: 9440 http://sourceforge.net/p/phpwiki/code/9440 Author: vargenau Date: 2014-12-09 17:24:27 +0000 (Tue, 09 Dec 2014) Log Message: ----------- Change syntax to please Template Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2014-12-09 15:29:48 UTC (rev 9439) +++ trunk/themes/default/templates/editpage.tmpl 2014-12-09 17:24:27 UTC (rev 9440) @@ -21,7 +21,11 @@ <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> <br class="clear-floats" /> <table class="fullwidth"> - <tr><td><?php if (isset($EDIT_TOOLBAR)) echo $EDIT_TOOLBAR ?></td> + <tr><td> + <?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> + <?php } ?> + </td> <td class="align-right"><div id="editarea-size"> <?php echo _("Size")._(":") ?> <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-05 17:45:07
|
Revision: 10828 http://sourceforge.net/p/phpwiki/code/10828 Author: vargenau Date: 2022-01-05 17:45:04 +0000 (Wed, 05 Jan 2022) Log Message: ----------- Less strings Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2022-01-05 17:44:40 UTC (rev 10827) +++ trunk/themes/default/templates/editpage.tmpl 2022-01-05 17:45:04 UTC (rev 10828) @@ -9,7 +9,7 @@ <?php } ?> <?php echo $PAGE_LOCKED_MESSAGE ?> <?php echo $CONCURRENT_UPDATE_MESSAGE ?> -<?php if (! $IS_CURRENT) { ?> +<?php if (!$IS_CURRENT) { ?> <p class="warning_msg"> <strong><?php echo _("Warning")._(": ") ?></strong> <?php echo _("You are editing an old revision.") ?> @@ -19,17 +19,18 @@ <form method="post" id="editpage" name="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8"> - <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> - <br class="clear-floats" /> - <?php if (isset($EDIT_TOOLBAR)) { ?> - <?php echo $EDIT_TOOLBAR ?> - <?php } ?> +<?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> +<br class="clear-floats" /> +<?php if (isset($EDIT_TOOLBAR)) { ?> + <?php echo $EDIT_TOOLBAR ?> +<?php } ?> <?php if (!empty($WYSIWYG_B)) { ?> <br /><div class="hint"><strong>Warning:</strong> Switching to the Wysiwyg editor will not keep your changes.</div> <?php } ?> - <a id="editarea"></a><?php echo $EDIT_TEXTAREA?> +<a id="editarea"></a><?php echo $EDIT_TEXTAREA?> <div class="toolbar" style="text-align: center;"> - <label for="edit-summary"><?php echo _("Summary")._(":") ?></label> <?php echo $SUMMARY_INPUT ?> +<label for="edit-summary"><?php echo _("Summary")._(":") ?></label> +<?php echo $SUMMARY_INPUT ?> </div> <?php if (ENABLE_CAPTCHA) { ?> <div class="toolbar" style="text-align: center;"> @@ -39,42 +40,47 @@ <?php } ?> <table class="toolbar fullwidth"> <tr class="middle"> - <td> - <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br /> - </td> - <td class="align-center"> - <?php if (!empty($WYSIWYG_B)){ ?> - <?php echo $WYSIWYG_B?><?php echo $SEP?> - <?php } ?> - <?php echo $PREVIEW_B ?> - <?php if ($SAVE_B) { ?> - <?php echo $SEP?><?php echo $SAVE_B ?> - <?php } ?> - <?php echo $SEP?><?php echo $CHANGES_B ?> - </td> - <td><?php echo $AUTHOR_MESSAGE?></td> +<td> +<?php echo $MINOR_EDIT_CB ?> +<label for="edit-minor_edit"> +<?php echo _("This is a minor change.")?> +</label> +<br /> +</td> +<td class="align-center"> +<?php if (!empty($WYSIWYG_B)){ ?> +<?php echo $WYSIWYG_B?><?php echo $SEP?> +<?php } ?> +<?php echo $PREVIEW_B ?> +<?php if ($SAVE_B) { ?> +<?php echo $SEP?><?php echo $SAVE_B ?> +<?php } ?> +<?php echo $SEP?><?php echo $CHANGES_B ?> +</td> +<td><?php echo $AUTHOR_MESSAGE?></td> </tr> <tr> - <td> - <?php if ($user->isAdmin()) { ?> - <?php echo $LOCKED_CB ?> <label for="edit-locked" title="<?php echo _("Make the page read-only?")?>"><?php echo _("Locked")?></label> - <?php if (ENABLE_PAGE_PUBLIC) { ?> - <?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Export to a separate public area?")?>"><?php echo _("Public")?></label> - <?php }} ?> - </td> - <td colspan="2" class="align-right"> - <?php if (!$user->isAuthenticated()) { ?> - <?php echo Template('signin', array('FORMNAME' => 'editpage')) ?> - <?php } ?> - </td> +<td> +<?php if ($user->isAdmin()) { ?> +<?php echo $LOCKED_CB ?> +<label for="edit-locked" title="<?php echo _("Make the page read-only?")?>"> +<?php echo _("Locked") ?> +</label> +<?php if (ENABLE_PAGE_PUBLIC) { ?> +<?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Make the page public?")?>"><?php echo _("Public")?></label> +<?php }} ?> +</td> +<td colspan="2" class="align-right"> +<?php if (!$user->isAuthenticated()) { ?> +<?php echo Template('signin', array('FORMNAME' => 'editpage')) ?> +<?php } ?> +</td> </tr> </table> <?php echo $HIDDEN_INPUTS?> </form> -<div style="width:100%;text-align:center;"><?php /*plugin UpLoad autolink=0 mode=edit size=30 */?></div> <hr /> <div class="wiki-edithelp"> -<?php // FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules ?> <p><?php echo fmt("See %s tips for editing.", WikiLink(__("Help")."/".__("GoodStyle"))) ?></p> <<IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1>> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-14 11:44:46
|
Revision: 10898 http://sourceforge.net/p/phpwiki/code/10898 Author: vargenau Date: 2022-01-14 11:44:43 +0000 (Fri, 14 Jan 2022) Log Message: ----------- Warn user that leaving the page will lose modifications Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2022-01-13 17:42:53 UTC (rev 10897) +++ trunk/themes/default/templates/editpage.tmpl 2022-01-14 11:44:43 UTC (rev 10898) @@ -16,6 +16,24 @@ <?php echo _("Saving this page will overwrite the current version.") ?> </p> <?php } ?> +<script type="text/javascript"> +<!--// +$(document).ready(function() { + wiki_modified=0; + $('form *').change(function(){ + wiki_modified=1; + }); + window.onbeforeunload = confirmExit; + function confirmExit() { + if (wiki_modified == 1) { + return "Warning: leaving the page will lose all your modifications!"; + } + } + $("input[name='edit[save]'],input[name='edit[preview]'],input[name='edit[diff]']").click(function() { + wiki_modified=0; + }); +}); +// --></script> <form method="post" id="editpage" name="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="UTF-8"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-14 12:33:03
|
Revision: 10899 http://sourceforge.net/p/phpwiki/code/10899 Author: vargenau Date: 2022-01-14 12:33:00 +0000 (Fri, 14 Jan 2022) Log Message: ----------- Warn user also after Preview or Changes Modified Paths: -------------- trunk/themes/default/templates/editpage.tmpl Modified: trunk/themes/default/templates/editpage.tmpl =================================================================== --- trunk/themes/default/templates/editpage.tmpl 2022-01-14 11:44:43 UTC (rev 10898) +++ trunk/themes/default/templates/editpage.tmpl 2022-01-14 12:33:00 UTC (rev 10899) @@ -19,7 +19,13 @@ <script type="text/javascript"> <!--// $(document).ready(function() { - wiki_modified=0; + ret=window.sessionStorage.getItem('wiki_modified'); + if (ret) { + wiki_modified=ret; + } else { + wiki_modified=0; + } + sessionStorage.removeItem('wiki_modified'); $('form *').change(function(){ wiki_modified=1; }); @@ -29,9 +35,14 @@ return "Warning: leaving the page will lose all your modifications!"; } } - $("input[name='edit[save]'],input[name='edit[preview]'],input[name='edit[diff]']").click(function() { + $("input[name='edit[save]']").click(function() { wiki_modified=0; + sessionStorage.removeItem('wiki_modified'); }); + $("input[name='edit[preview]'],input[name='edit[diff]']").click(function() { + window.sessionStorage.setItem('wiki_modified', wiki_modified); + wiki_modified=0; + }); }); // --></script> <form method="post" id="editpage" name="editpage" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |