-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Convert Dirty from Coffeescript to Javascript #2510
Convert Dirty from Coffeescript to Javascript #2510
Conversation
return $(element).hasClass("dirty") | ||
} | ||
|
||
function checkPageDirtyness(element) { |
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.
Function checkPageDirtyness
has 27 lines of code (exceeds 25 allowed). Consider refactoring.
1154ed2
to
bf3f486
Compare
6129e4c
to
9bd0277
Compare
@sascha-karnatz needs a rebase now that #2509 has been merged |
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 does not trigger the unload event on page refresh anymore. Try reloading the page if an element is in dirty state in latest main. It will trigger an confirm dialog. In this branch it does not show this confirm dialog anymore.
9d7fea2
to
50d3e7d
Compare
Done. It was a missing function. |
Also move the file to app/javascript folder.
50d3e7d
to
04740e0
Compare
What is this pull request for?
Convert dirty.js.coffee to dirty.js and move the file into app/javascript.
Checklist