New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Information section minimized by default? #25

jdarwood007 opened this Issue Nov 30, 2015 · 1 comment


None yet
3 participants

jdarwood007 commented Nov 30, 2015

Reference SimpleDesk Website: Additional Information section minimized by default?

How to minimize the Additional Information section by default.

Firstly, you'd need to alter the JavaScript - Themes/default/scripts/helpdesk.js
function CustomFields(oOptions)
this.opt = oOptions;
this.bCollapsed = false;

Change the false to true. That'll tell the JS to style it correctly after the first click. Then we just have to fix the rest of the styling, which is all in ./Themes/default/sd_template/SimpleDesk-Display.template.php

Firstly, the image:

<span class="floatright"><a href="javascript:oCustomFields.infoswap();"><img src="', $settings['images_url'], '/collapse.gif" alt="+" id="shd_custom_fields_swap" class="icon" /></a></span>

Change the collapse to expand.

Then the header:
<div class="title_bar grid_header" id="additionalinfoheader">

Should become:
<div class="title_bar" id="additionalinfoheader">

Lastly, fixing the box itself. This is in two parts due to SMF styling code.
<div class="roundframe" id="additional_info">

Should become
<div class="roundframe" id="additional_info" style="display:none;">

<span class="lowerframe" id="additional_info_footer"><span></span></span>

Should become
<span class="lowerframe" id="additional_info_footer" style="display:none;"><span></span></span>

Remember to clear your browser's cache (CTL-F5) to reload the Java, or else the toggle open and closed will be off by one.


This comment has been minimized.

Show comment
Hide comment

Antes Sep 5, 2017


This solution will no longer work due to changes in core-template.


Antes commented Sep 5, 2017

This solution will no longer work due to changes in core-template.

jdarwood007 added a commit to jdarwood007/SimpleDesk that referenced this issue Jul 18, 2018

Various Fixes and cleanup
Add ability to collapse additional options.
Convert over to using Hooks for Package-Info

Fixes SimpleDesk#55
Fixes SimpleDesk#25
Fixes SimpleDesk#21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment