From: <no...@kr...> - 2009-06-16 20:57:39
|
Revision: 6176 Author: noam Date: 2009-06-16 16:57:36 -0400 (Tue, 16 Jun 2009) Log Message: ----------- Fixed bug in ElementEditor/edit.base.tmpl which caused Done button to be missing from any container element not set to allow_delete => 1. Modified Paths: -------------- trunk/krang/docs/changelog.pod trunk/krang/templates/ElementEditor/edit.base.tmpl Modified: trunk/krang/docs/changelog.pod =================================================================== --- trunk/krang/docs/changelog.pod 2009-06-16 00:57:18 UTC (rev 6175) +++ trunk/krang/docs/changelog.pod 2009-06-16 20:57:36 UTC (rev 6176) @@ -6,6 +6,10 @@ =over +Fixed bug in ElementEditor/edit.base.tmpl which caused Done button +to be missing from any container element not set to allow_delete => 1. +[Noam Weinstein] + =item * Fixed bug in BrowserSpeedBoost that did not clear out old compressed HTML Modified: trunk/krang/templates/ElementEditor/edit.base.tmpl =================================================================== --- trunk/krang/templates/ElementEditor/edit.base.tmpl 2009-06-16 00:57:18 UTC (rev 6175) +++ trunk/krang/templates/ElementEditor/edit.base.tmpl 2009-06-16 20:57:36 UTC (rev 6176) @@ -283,10 +283,12 @@ </tmpl_if> <tmpl_if crumbs> -<tmpl_if allow_delete><p class="cram east"> +<p class="cram east"> <input value="<tmpl_var done_with_this_element>" onclick="save_and_go_up()" type="button" class="button"> - <input value="<tmpl_var delete_this_element>" onclick="remove_element()" type="button" class="button"> -</p></tmpl_if> + <tmpl_if allow_delete> + <input value="<tmpl_var delete_this_element>" onclick="remove_element()" type="button" class="button"> + </tmpl_if> +</p> <div class="crumbs"><strong><tmpl_lang Go To:></strong> <tmpl_loop crumbs> <tmpl_unless __last__><a href="javascript:jump_to('<tmpl_var escape=html path>')"></tmpl_unless><tmpl_var escape=html name><tmpl_unless __last__></a> »</tmpl_unless> @@ -438,10 +440,12 @@ </tmpl_unless></tmpl_if> <tmpl_if crumbs> -<tmpl_if allow_delete><p class="cram east"> +<p class="cram east"> <input value="<tmpl_var done_with_this_element>" onclick="save_and_go_up()" type="button" class="button"> - <input value="<tmpl_var delete_this_element>" onclick="remove_element()" type="button" class="button"> -</p></tmpl_if> + <tmpl_if allow_delete> + <input value="<tmpl_var delete_this_element>" onclick="remove_element()" type="button" class="button"> + </tmpl_if> +</p> <div class="crumbs"><strong><tmpl_lang Go To:></strong> <tmpl_loop crumbs> <tmpl_unless __last__><a href="javascript:jump_to('<tmpl_var escape=html path>')"></tmpl_unless><tmpl_var escape=html name><tmpl_unless __last__></a> »</tmpl_unless> |