From: <var...@us...> - 2012-11-14 13:45:55
|
Revision: 8430 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8430&view=rev Author: vargenau Date: 2012-11-14 13:45:45 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Remove $Id$ Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:42:29 UTC (rev 8429) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:45:45 UTC (rev 8430) @@ -1,6 +1,3 @@ -<?php // -*-php-*- -// $Id$ -?> <?php if (isset($PREVIEW_CONTENT)) { ?> <p><strong><?php echo _("Preview only! Changes not saved.")?></strong> <?php echo fmt("Please continue editing. (You'll find your %s at the bottom of the page.)", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 13:48:42
|
Revision: 8431 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8431&view=rev Author: vargenau Date: 2012-11-14 13:48:31 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:45:45 UTC (rev 8430) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:48:31 UTC (rev 8431) @@ -26,7 +26,7 @@ <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?> <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?> <br class="clear-floats" /> - <table width="100%"> + <table class="fullwidth"> <tr><td><?php echo $EDIT_TOOLBAR ?></td> <td align="right"><div id="editarea-size"> <?php echo _("Size").':'?> @@ -35,11 +35,10 @@ <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript> </div></td></tr></table> <a id="editarea"></a><?php echo $EDIT_TEXTAREA?> -<div class="toolbar" style="text-align: center;"> +<div style="text-align: center;"> <label for="edit-summary"><?php echo _("Summary").':'?></label> <?php echo $SUMMARY_INPUT?> </div> -<table summary="Toolbar: Page editing options." class="toolbar" width="100%" - cellpadding="0" cellspacing="0" border="0"> +<table summary="Toolbar: Page editing options." class="fullwidth"> <tr valign="middle"> <td> <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 13:51:19
|
Revision: 8432 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8432&view=rev Author: vargenau Date: 2012-11-14 13:51:10 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Remove Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:48:31 UTC (rev 8431) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:51:10 UTC (rev 8432) @@ -50,17 +50,17 @@ <?php } ?> <?php echo $SEP?><?php echo $CHANGES_B ?> </td> - <td> <?php echo $AUTHOR_MESSAGE?></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 _("Make the page public?")?>"><?php echo _("Public")?></label> + <?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Make the page public?")?>"><?php echo _("Public")?></label> <?php } ?> <?php if (ENABLE_EXTERNAL_PAGES) { ?> - <?php echo $EXTERNAL_CB ?> <label for="edit-external" title="<?php echo _("Make the page external?")?>"><?php echo _("External")?></label> + <?php echo $EXTERNAL_CB ?> <label for="edit-external" title="<?php echo _("Make the page external?")?>"><?php echo _("External")?></label> <?php }} ?> </td> </tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 13:53:38
|
Revision: 8433 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8433&view=rev Author: vargenau Date: 2012-11-14 13:53:28 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Remove comment Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:51:10 UTC (rev 8432) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:53:28 UTC (rev 8433) @@ -13,13 +13,6 @@ <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?> <?php echo _("Saving this page will overwrite the current version.")?></strong></p> <?php } ?> -<?php /* - * FIXME: Hack! - * The funky URL used for the form action parameter is bogus. - * This is needed, otherwise the redirect to the real browser - * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept - * a redirect from a page to itself.) - */ ?> <form method="post" id="editpage" name="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="<?php echo CHARSET?>"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 14:00:58
|
Revision: 8434 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8434&view=rev Author: vargenau Date: 2012-11-14 14:00:48 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Use CSS Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 13:53:28 UTC (rev 8433) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 14:00:48 UTC (rev 8434) @@ -1,7 +1,6 @@ <?php if (isset($PREVIEW_CONTENT)) { ?> - <p><strong><?php echo _("Preview only! Changes not saved.")?></strong> - <?php echo fmt("Please continue editing. (You'll find your %s at the bottom of the page.)", - /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?> + <p class="information"> + <?php echo _("Preview only! Changes not saved. Please continue editing. (You'll find your edit area at the bottom of the page.)") ?> </p> <?php echo $PREVIEW_CONTENT ?> <?php } ?> @@ -10,8 +9,9 @@ <?php echo $CONCURRENT_UPDATE_MESSAGE ?> <?php if (! $IS_CURRENT) { ?> - <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?> - <?php echo _("Saving this page will overwrite the current version.")?></strong></p> + <p class="warning_msg"> + <?php echo _("Warning: You are editing an old revision. Saving this page will overwrite the current version.")?> + </p> <?php } ?> <form method="post" id="editpage" name="editpage" action="<?php echo $request->getPostURL() ?>" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 14:02:59
|
Revision: 8435 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8435&view=rev Author: vargenau Date: 2012-11-14 14:02:50 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Add use_jquery_form_navigate Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 14:00:48 UTC (rev 8434) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 14:02:50 UTC (rev 8435) @@ -13,6 +13,51 @@ <?php echo _("Warning: You are editing an old revision. Saving this page will overwrite the current version.")?> </p> <?php } ?> +<?php if (forge_get_config('use_jquery_form_navigate')) { ?> +<script type="text/javascript"> +<!--// + function supports_local_storage() { + try { + return 'localStorage' in window && window['localStorage'] !== null; + } + catch(e) { + return false; + } + } + $(document).ready(function() { + $("#editpage").FormNavigate('<?php echo _('Warning: leaving the page will lose all your modifications!') ?>'); + $(this+ ":submit").unbind('click'); + $(this+ ":submit[name='edit[save]']").click(function(){ + global_formNavigate = true; + }); + $(this+ ":input[type='image'], :submit[name='edit[preview]'], :submit[name='edit[diff]']").click(function(){ + if (supports_local_storage()) { + if (global_formNavigate == false) { + window.sessionStorage.setItem('wiki_modified', 1); + } + else { + window.sessionStorage.setItem('wiki_modified', 0); + } + } + global_formNavigate = true; + }); + $("#toolbar a").click(function() { + global_formNavigate = false; + }); +<?php if (isset($PREVIEW_CONTENT)) { ?> + if (supports_local_storage()) { + if (window.sessionStorage.getItem('wiki_modified') == 1) { + global_formNavigate = false; + } + else { + global_formNavigate = true; + } + } +<?php } ?> + }); +// --></script> +<?php } ?> + <form method="post" id="editpage" name="editpage" action="<?php echo $request->getPostURL() ?>" accept-charset="<?php echo CHARSET?>"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-14 14:14:35
|
Revision: 8436 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8436&view=rev Author: vargenau Date: 2012-11-14 14:14:24 +0000 (Wed, 14 Nov 2012) Log Message: ----------- Whitespace only Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 14:02:50 UTC (rev 8435) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2012-11-14 14:14:24 UTC (rev 8436) @@ -93,13 +93,14 @@ <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 _("Make the page public?")?>"><?php echo _("Public")?></label> + <?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 } ?> + <?php if (ENABLE_EXTERNAL_PAGES) { ?> + <?php echo $EXTERNAL_CB ?> <label for="edit-external" title="<?php echo _("Make the page external?")?>"><?php echo _("External")?></label> + <?php } ?> <?php } ?> - <?php if (ENABLE_EXTERNAL_PAGES) { ?> - <?php echo $EXTERNAL_CB ?> <label for="edit-external" title="<?php echo _("Make the page external?")?>"><?php echo _("External")?></label> - <?php }} ?> </td> </tr> </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-01-11 10:27:18
|
Revision: 8712 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8712&view=rev Author: vargenau Date: 2013-01-11 10:27:11 +0000 (Fri, 11 Jan 2013) Log Message: ----------- Make FormNavigate work for jQuery 1.5+ Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2013-01-11 10:20:47 UTC (rev 8711) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2013-01-11 10:27:11 UTC (rev 8712) @@ -26,11 +26,11 @@ } $(document).ready(function() { $("#editpage").FormNavigate('<?php echo _('Warning: leaving the page will lose all your modifications!') ?>'); - $(this+ ":submit").unbind('click'); - $(this+ ":submit[name='edit[save]']").click(function(){ + jQuery(this).find(":submit").unbind('click'); + jQuery(this).on('click', "submit[name='edit[save]']", function () { global_formNavigate = true; }); - $(this+ ":input[type='image'], :submit[name='edit[preview]'], :submit[name='edit[diff]']").click(function(){ + jQuery(this).on('click', "input[type='image'], submit[name='edit[preview]'], submit[name='edit[diff]']", function () { if (supports_local_storage()) { if (global_formNavigate == false) { window.sessionStorage.setItem('wiki_modified', 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-02-15 15:17:53
|
Revision: 8729 http://sourceforge.net/p/phpwiki/code/8729 Author: vargenau Date: 2013-02-15 15:17:49 +0000 (Fri, 15 Feb 2013) Log Message: ----------- Fix FormNavigate Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2013-02-15 15:14:50 UTC (rev 8728) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2013-02-15 15:17:49 UTC (rev 8729) @@ -27,10 +27,10 @@ $(document).ready(function() { $("#editpage").FormNavigate('<?php echo _('Warning: leaving the page will lose all your modifications!') ?>'); jQuery(this).find(":submit").unbind('click'); - jQuery(this).on('click', "submit[name='edit[save]']", function () { + jQuery(this).on('click', "input[name='edit[save]']", function () { global_formNavigate = true; }); - jQuery(this).on('click', "input[type='image'], submit[name='edit[preview]'], submit[name='edit[diff]']", function () { + jQuery(this).on('click', "input[type='image'], input[name='edit[preview]'], input[name='edit[diff]']", function () { if (supports_local_storage()) { if (global_formNavigate == false) { window.sessionStorage.setItem('wiki_modified', 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-06-12 16:09:12
|
Revision: 8796 http://sourceforge.net/p/phpwiki/code/8796 Author: vargenau Date: 2013-06-12 16:09:08 +0000 (Wed, 12 Jun 2013) Log Message: ----------- Do not translate TextFormattingRules Modified Paths: -------------- trunk/themes/fusionforge/templates/editpage.tmpl Modified: trunk/themes/fusionforge/templates/editpage.tmpl =================================================================== --- trunk/themes/fusionforge/templates/editpage.tmpl 2013-06-12 16:04:29 UTC (rev 8795) +++ trunk/themes/fusionforge/templates/editpage.tmpl 2013-06-12 16:09:08 UTC (rev 8796) @@ -111,8 +111,8 @@ <div class="wiki-edithelp"> <?php if (WIKI_NAME == "help") { ?> -<?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?> +<?plugin IncludePage page="Help/TextFormattingRules" section="Synopsis" quiet=1?> <?php } else { ?> -<?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?> +<?plugin IncludePage page="TextFormattingRules" section="Synopsis" quiet=1?> <?php } ?> </div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |