-
Notifications
You must be signed in to change notification settings - Fork 422
fix for labeling new torrents #2925
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
Conversation
@@ -230,15 +230,15 @@ function makeContent() { | |||
req.push('not_add_path=1'); | |||
if($("#randomize_hash").prop("checked")) | |||
req.push('randomize_hash=1'); | |||
var dirEle = $$("#dir_edit"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove #
which is not needed, it should var dirEle = $$("dir_edit");
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and it works, but val() did not work like it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and it works, but val() did not work like it was before.
It's not a JQuery object so, val()
won't work.
if(dir.length) | ||
req.push('dir_edit='+encodeURIComponent(dir)); | ||
} | ||
var lblEle = $$("#tadd_label") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also done.
Thanks! |
**Full Changelog**: Novik/ruTorrent@v5.2.4...v5.2.5 # ruTorrent v5.2.5 This is a critical hotfix. It's highly recommended to upgrade. It fixes applying labels to new torrents. The error behavior is also reverted based on community feedback. ## What's Changed * Restore the original behavior of "Error" state based on community feedback by gashtal in Novik/ruTorrent#2923 * fix for labeling new torrents by ranirahn in Novik/ruTorrent#2925
**Full Changelog**: Novik/ruTorrent@v5.2.4...v5.2.5 # ruTorrent v5.2.5 This is a critical hotfix. It's highly recommended to upgrade. It fixes applying labels to new torrents. The error behavior is also reverted based on community feedback. ## What's Changed * Restore the original behavior of "Error" state based on community feedback by gashtal in Novik/ruTorrent#2923 * fix for labeling new torrents by ranirahn in Novik/ruTorrent#2925
* fix for this #2920 * Update content.js
For some reason $$ cant get the values. Maybe in the future someone finds better solution why its not working, but directly getting the value with getElementById works.