Comments (11)
This looks like some sort of race condition in the DOM. Setting a breakpoint on this line:
let dropdownElement = $(
#dropdown-${id}).clone(true)
You will find that the dropdownElement length is equal to 0 -- meaning that it can't find that particular element. I verified that the id that is being passed is the container id which is correct. After the page loads, you can open up developer tools and run:
var id = "a44765f3cd56"; let dropdownElement = $(
#dropdown-${id}).clone(true)
Where id is equal to the container id you would like to check. You will see that jquery was able to find the element now, but wasn't quite ready when the code wants to execute.
I'll wait and see if the developer is working on this issue. If I have time, I'll take another look for a fix.
from unraid-plugin-docker.folder.
I am guessing this project is dead?
from unraid-plugin-docker.folder.
@hendrik1120 I am not an original developer of this project, just submitted a small patch when faced the issue I had.
As of right now, I cant even test this out, as I am still running 6.9.2
, and don't have a spare server to test out 6.10
.
Maybe once it is released, @GuildDarts will take a look at it, most plugins are developed and updated right after the new version is released, they are rarely available for the release candidates versions.
from unraid-plugin-docker.folder.
@darki73 can confirm this is also the same issue in the stable 6.10
from unraid-plugin-docker.folder.
@darki73 @GuildDarts are you still planning on continuing this plugin? A quick update would be much appreciated.
from unraid-plugin-docker.folder.
Just for additional context, it is still having an issue on Version: 6.10.0-rc4 where the context menus don't show up. It also means you can't easily click the icon for the web gui since that doesn't display. Would be great if it was updated.
from unraid-plugin-docker.folder.
Confirm same blank page on 6.10.0 ,can some one to fix it ?
from unraid-plugin-docker.folder.
Im running 6.10.rc5 and i pulled @SavageAUS SavageAUS version and extracted the only changed file (DockerFolder_Docker.page) I could find in his 2022-03-19 version and I'm still seeing the issue.
@darki73 can you link your patch for me to test?
A supposed fix for the log button not responding was posted to the UnRaid forum, i will test tonight and run a diff on all the files.
from unraid-plugin-docker.folder.
@AzAel76 I was talking about the patch submitted about a year ago, regarding the settings issue, I've yet to see what causing problem with the pop-up on the 6.10
.
PS. THIS IS NOT A FIX (as I cannot test it), but by the looks of it, if it is a race condition, you might try:
Replace:
(function() {
userprefs_fix_apply('docker')
})();
With:
$(document).ready(function() {
userprefs_fix_apply('docker');
});
I have no idea if it will work, but you might aswell try 😋
And here is a bit more info on why the issue MIGHT occur:
As you can see from this code snippet, we have 3 console logs
, one in the JQuery realization of "is document loaded", second one in the "native js", and third in the current function which calls for (I suppose) init script for the page.
So from here, we would assume, that the latter one will be called last, however, if we will look at the browser console, there will be this stuff:
So as you can see, the initialization script is triggered way before document is ready for use.
from unraid-plugin-docker.folder.
Totally broke the entire script. all the folders disappeared and it went back to default look (no "folders")
from unraid-plugin-docker.folder.
I spent few hours debugging this with no luck (I am more of a backend developer, not frontend), the starting point should be #11 (comment)
An easy way to make it work which might help others:
Open the folder so that you have access to individual containers and start or stop a container from there. The drop down items will work until the page is refreshed.
from unraid-plugin-docker.folder.
Related Issues (11)
- Folders disappeared HOT 1
- [BUG] When sitting behind an Nginx Reverse Proxy
- Docker Folder on Dashboard is not working HOT 1
- bug ? HOT 2
- [BUG] Adding a container to two folders causes the folders.json to be broken HOT 3
- Folders don't show up properly in safari (or any iOS browser) HOT 11
- Can't Create a VM Folder HOT 2
- VM Folder Edit Doesn't Remember Settings HOT 1
- VM Tab Folder Sorts Alphabetically - Dashboard Sorts by Defined Order HOT 2
- I found a security issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unraid-plugin-docker.folder.