Page 1 of 1

Image selection (thumbnails) not as before

Posted: 2023-10-25 17:06
by ronwill
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!?

Re: Image selection (thumbnails) not as before

Posted: 2023-10-28 13:26
by ronwill
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!?

Re: Image selection (thumbnails) not as before

Posted: 2023-10-29 16:21
by jfischer
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 3575 times

Re: Image selection (thumbnails) not as before

Posted: 2023-10-31 00:18
by ronwill
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