show asset helpers when viewing www_edit page
This commit is contained in:
parent
ad6cd0526c
commit
7eb7b83eaa
1 changed files with 9 additions and 4 deletions
|
|
@ -2567,12 +2567,17 @@ sub www_edit {
|
||||||
$f->action( $self->getUrl );
|
$f->action( $self->getUrl );
|
||||||
|
|
||||||
# TODO: Make this whole thing a template instead!
|
# TODO: Make this whole thing a template instead!
|
||||||
$self->session->style->setRawHeadTags(
|
$self->session->style->setRawHeadTags(<<'ENDHTML');
|
||||||
'<style type="text/css">
|
<style type="text/css">
|
||||||
label.formDescription { display: block; margin-top: 1em; font-weight: bold }
|
label.formDescription { display: block; margin-top: 1em; font-weight: bold }
|
||||||
.saveButtons { position: absolute; top: 3px; right: 5px; z-index: 9001; }
|
.saveButtons { position: absolute; top: 3px; right: 5px; z-index: 9001; }
|
||||||
</style>'
|
</style>
|
||||||
);
|
<script type="text/javascript">
|
||||||
|
if ( window.parent && window.parent.admin ) {
|
||||||
|
window.parent.admin.adminBar.show("assetHelpers");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
ENDHTML
|
||||||
|
|
||||||
return $self->session->style->process(
|
return $self->session->style->process(
|
||||||
'<div class="yui-skin-sam">' . $f->toHtml . '</div>',
|
'<div class="yui-skin-sam">' . $f->toHtml . '</div>',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue