refactor -> rename is showing occurrences found in comments\strings. but not renaming them.

in a django project..

|-- user_profile
| |-- static
| | `-- user_profile
| | |-- js
| | |-- profile.js
| |-- templates
| | `-- user_profile
| | `-- user_profile.html

I'm trying to rename the "delete-modal" in user_profile.html to "delete-photo-modal"...and also include the jquery element selector in the profile.js file...

 

user_profile.html

...
<div id="delete-modal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
...

 

profile.js

...
$('#delete-modal').modal('show');
$('#delete-modal').on('hide.bs.modal', function (e) {
...

The refactor window shows the profile.js lines in the "occurrences found in comments..." section

 

 

But when I click "Do Refactor" it doesn't actually change the values...  

Am I mistaken in that this should indeed do so?

2
2 comments

It happens to me also, the string occurrence is in the same line:

gcPayAppApprovalStatus: this._route.snapshot.queryParams["GcPayAppApprovalStatus"]

Oddly enough when typing in I can see that the string also changes, but when I press enter the string keeps the old name

0
Hello, 
I couldn't reproduce the issue with the provided samples. 
Please create an issue on YouTrack and provide precise steps for reproducing the problem and code snippets where the issue is reproducible: https://youtrack.jetbrains.com/issues/PY
0

Please sign in to leave a comment.