only show asset helpers when editing, not adding
This commit is contained in:
parent
a99b15a38d
commit
8c631fbc86
1 changed files with 5 additions and 0 deletions
|
|
@ -2598,12 +2598,17 @@ sub www_edit {
|
|||
label.formDescription { display: block; margin-top: 1em; font-weight: bold }
|
||||
.saveButtons { position: absolute; top: 3px; right: 5px; z-index: 9001; }
|
||||
</style>
|
||||
ENDHTML
|
||||
|
||||
if ( $self->session->form->get('func') ne 'add' ) {
|
||||
$self->session->style->setRawHeadTags(<<'ENDHTML');
|
||||
<script type="text/javascript">
|
||||
if ( window.parent && window.parent.admin ) {
|
||||
window.parent.admin.adminBar.show("assetHelpers");
|
||||
}
|
||||
</script>
|
||||
ENDHTML
|
||||
}
|
||||
|
||||
return $self->session->style->process(
|
||||
'<div class="yui-skin-sam">' . $f->toHtml . '</div>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue