From: <pk...@us...> - 2011-02-15 22:51:39
|
Revision: 32841 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=32841&view=rev Author: pkdille Date: 2011-02-15 22:51:33 +0000 (Tue, 15 Feb 2011) Log Message: ----------- [QT] Quality Team Backport r32430 | sept_7 | 2011-02-04 15:47:08 +0100 (Fri, 04 Feb 2011) | 2 lines [FIX/bp 32429] Fix "Preview" button to match other buttons "Cancel" and "Save" Modified Paths: -------------- branches/6.x/templates/wiki_edit_actions.tpl Modified: branches/6.x/templates/wiki_edit_actions.tpl =================================================================== --- branches/6.x/templates/wiki_edit_actions.tpl 2011-02-15 22:51:19 UTC (rev 32840) +++ branches/6.x/templates/wiki_edit_actions.tpl 2011-02-15 22:51:33 UTC (rev 32841) @@ -1,8 +1,8 @@ {* $Id$ *} <input type="hidden" name="no_bl" value="y" /> +<input type="submit" class="wikiaction tips" title="{tr}Edit wiki page{/tr}|{tr}Preview your changes.{/tr}" name="preview" id="preview" value="{tr}Preview{/tr}" onclick="needToConfirm=false;" /> {if $prefs.ajax_autosave eq "y"} - {button _title="{tr}Preview your changes.{/tr}" _class="wikiaction tips previewBtn" _text="{tr}Preview{/tr}" _ajax="n"} - {jq} $(".previewBtn").click(function(){ + {jq} $("#preview").click(function(){ auto_save_data['editwiki'] = ""; auto_save('editwiki', autoSaveId); if (!ajaxPreviewWindow) { @@ -10,8 +10,6 @@ } return false; });{/jq} -{else} - <input type="submit" class="wikiaction tips" title="{tr}Edit wiki page{/tr}|{tr}Preview your changes.{/tr}" name="preview" value="{tr}Preview{/tr}" onclick="needToConfirm=false;" /> {/if} {if $page|lower neq 'sandbox' or $tiki_p_admin eq 'y'} {if ! $page_badchars_display or $prefs.wiki_badchar_prevent neq 'y'} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |