Jump to content

[Bug] [WebGUI] for multiple screenshots - clicking any thumbnail only loads the first [+fix]


Recommended Posts

Posted (edited)

hoi ED,

clicking a player screenshots is broken in latest version DCS 2.7.15.26783 Open Beta
this function is still working in the latest stable version DCS 2.7.14.24228

I noticed two differences in the WebGUI/js file "app.js". Reverting the first change back to the old version fixes the wrong screenshot beeing opened when clicking a thumbnail of a player. Just one character variable name:

// broken new code:
(t.screenKeys,(function(e,r){return n("screenshot-thumbnail",{key:r,attrs:{
      url:t.urlFromKey(e),"screen-key":e,"player-id":t.playerId
},on:{"show-gallery":t.showGallery}})}))

// working old code:
(t.screenKeys,(function(e,r){return n("screenshot-thumbnail",{key:r,attrs:{
      url:t.urlFromKey(e),"screen-key":r,"player-id":t.playerId
},on:{"show-gallery":t.showGallery}})}))

The second change is in the "gallery" Object, somehow involved in loading of screenshots.
No idea what it does or why you changed it - it doesn't appear to change anything in the WebGUI.

Maybe you tried to fix this (second) bug:
Whenever a player leaves the server, the gallery array change order and the wrong gallery thumbnails are displayed for the wrong pilot. However clicking on the thumbnail shows the correct screenshot for the pilot. This bug is persistent with the old version of the code and the new version of the code as well. Workaround: reload the site.

regards,
Eld0r

Edited by Eld0r
fix

[ ]  twitch.tv/eld0r — Chaos, dumme Sprüche, Chaos und keine Wiederholungen.  [ ]

  • Eld0r changed the title to [Bug] [WebGUI] for multiple screenshots - clicking any thumbnail only loads the first [+fix]
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...