Skip to content

Conversation

ranirahn
Copy link
Contributor

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.

@@ -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");
Copy link
Contributor

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");.

Copy link
Contributor Author

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.

Copy link
Contributor

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also done.

@stickz stickz linked an issue May 17, 2025 that may be closed by this pull request
2 tasks
@stickz stickz changed the title fix for this https://github.com/Novik/ruTorrent/issues/2920 fix for labeling new torrents May 17, 2025
@stickz
Copy link
Collaborator

stickz commented May 17, 2025

Thanks!

@stickz stickz merged commit 4eefb7a into Novik:master May 17, 2025
stickz added a commit to stickz/docker-rtorrent-rutorrent that referenced this pull request May 17, 2025
**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
stickz added a commit to stickz/docker-rutorrent that referenced this pull request May 17, 2025
**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
stickz pushed a commit that referenced this pull request May 17, 2025
* fix for this #2920

* Update content.js
@ranirahn ranirahn deleted the add_torrent branch May 22, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Label not being added to new Torrents
3 participants