Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening settings page resets directory and label lists. #123

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments
Open

Opening settings page resets directory and label lists. #123

GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

There seems to be an issue with the logic in your add-on. If you go to the 
settings page and change something, you lose the directory and label list 
drop-down values.

Doing some debugging led me to this (content_rta.js: 84-85):
var dirlist = server["dirlist"] && JSON.parse(server["dirlist"]);
var labellist = server["labellist"] && JSON.parse(server["labellist"]);

What I noticed is that if you change "server" to "settings" here it will work 
fine. Once you add the torrent, the next time the pop-up opens it works fine as 
well. I think the config page doesn't add the current dirlist or labellist to 
the 'server' field when the settings are saved, so the next time around the 
dirlist will be empty. 

Original issue reported on code.google.com by [email protected] on 20 Nov 2014 at 9:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant