Image selection (thumbnails) not as before

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Image selection (thumbnails) not as before

Post by ronwill » 2023-10-25 17:06

Noticed that images no longer open in image modal window!
They now open new blank window, so user needs to select browser back window to return to table etc.
Before when clicking on table image (set to enable zooming) it would open in modal view (with close X or clicking outside image returned to table.

I've scaled back to previous version - (23.15) with same result!?
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Image selection (thumbnails) not as before

Post by ronwill » 2023-10-28 13:26

I can use following in tablename-tv.js to make clicking image, in table view, open in a modal but the image is shown full size in modal (regardless of selecting modal size 'full' or small, etc.) - I need it to limit image size to the opened modal (for IPhones etc.):

Code: Select all

$j(function() {
   $j('dd > a').attr('onclick', '').click(function(e) {
      e.preventDefault();
      var link = $j(this).attr('href'); // add '&dvprint_x=1' to show non-editable DV
      modal_window({
         url: link,
         size: 'full',
         noAnimation: true,
        title: 'Detail view', /* change that to the desired modal window title */
        close: function() {
            if(confirm('Would you like to exit zoom and reload the table?')) location.reload();
         }
      });
   })
Any ideas or reason it has stopped automatically opening images in a modal as before!?
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

jfischer
Posts: 24
Joined: 2022-11-19 16:07
Location: Austria
Contact:

Re: Image selection (thumbnails) not as before

Post by jfischer » 2023-10-29 16:21

Hello Ronwill
This is exactly how it works with the new AppGini. AppGini 23.16
LG from Austria

Joseph
Bild-1.png
Bild-1.png (222.5 KiB) Viewed 1913 times

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Image selection (thumbnails) not as before

Post by ronwill » 2023-10-31 00:18

Solved!
I had an error in my hooks/footer-extras.php
The file had a <script> tag that didn't belong there, after removal all worked again as it should.

Thanks Joseph, your confirming it was nothing to do with any changes led me to check all my edited files (hooks) that were not regenerated - luckily I started with the footer-extras as most of my additions are there.
Cheers,
Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

Post Reply