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 |
Reporter | michaelg | Assigned To | dregad | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 2.0.0-beta.3 | ||||
Target Version | 2.2.0 | Fixed in Version | 2.2.0 | ||
Summary | 0021796: inline attachments should be directly visible | ||||
Description | 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". |
|
That would require to expand the section by default in specific cases, which IIRC (it's been a while since I looked at this part of the code) is not feasible with the current API and related javascript. |
|
Hi, 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; change to $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. Regards, Maik |
|
MantisBT: master 41810b2c 2017-02-08 05:54 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. Fixes 0021796 |
Affected Issues 0021796 |
|
mod - core/print_api.php | Diff File |