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?

Please sign in to leave a comment.