View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0021796||mantisbt||ui||public||2016-10-12 07:34||2017-02-27 03:39|
|Target Version||2.2.0||Fixed in Version||2.2.0|
|Summary||0021796: inline attachments should be directly visible|
Can we make it configurable to have inline pictures expanded directly?
|Tags||No tags attached.|
quick fix is to change in common.js
at line 36
We have the config option
thanks for answering...
But even if you set $g_preview_attachments_inline_max_size the picture is still collapsed.
The request is to have it directly expanded.
I agree. In my opinion, it would be very useful to display the images directly if the images correspond with values specified in "$g_preview_attachments_inline_max_size".
I had exact same problem (my testers never noticed the "+" icon to expand the attached images and I'm tired to always explain the same things again and again).
I came up with the following solution for me:
$g_collapse_cache_token[$t_collapse_id] = false;
$g_collapse_cache_token[$t_collapse_id] = true;
==> Would be nice to have the a global variable to decide if image should be shown collapsed or not.
BTW: Thanks a lot for this great and easy to use software.
MantisBT: master 41810b2c
Committer: vboctor Details Diff
|Expand image attachments by default
If an attachment of type image is smaller than the maximum preview
threshold ($g_preview_attachments_inline_max_size), Mantis was only
displaying the attachment's name and a [+] button, forcing an extra
click for the user to view it.
We now display images by default, allowing the user to optionally hide
them instead by clicking the [-] button.
|mod - core/print_api.php||Diff File|