Closed (fixed)
Project:
Floating Sticky Notes
Version:
1.0.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2026 at 11:14 UTC
Updated:
23 Jun 2026 at 09:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
dkmishra commentedI have looked into this issue and found that the AJAX `success` callback for the "Save Note" button was not dynamically updating the DOM tree once the note data was saved to the backend. It only console-logged the response, requiring a manual toggle or refresh to show up.
I have attached a patch that addresses this:
- Updates the save button's AJAX success handler to instantly `prepend` the new note to the `.sticky-history-box ul` list component.
- Empties the textarea and resets the border styles upon a successful save.
- Adds basic client-side validation to prevent empty submissions.
- Refactored the code to conform strictly to Drupal JavaScript coding standards (using ES6 template literals instead of old string concatenation, and avoiding native `alert()` boxes).
Please review.
Comment #6
chaitanyadessai commented@dkmishra changes merged and released thanks for your contributions.
Comment #7
chaitanyadessai commented