“Raroun”
|
d6067d3466
|
Modernize compose.js and modal.js with improved architecture and bug fixes
compose.js:
- Add draft autosave to sessionStorage (body, location, scheduled_at)
- Restore draft when returning to compose page
- Clear form after successful post submission
- Fix geolocation operator precedence bug
- Fix button staying disabled after geolocation error
- Add sessionStorage availability check for private browsing
- Wrap in IIFE with 'use strict'
- Add JSDoc documentation
- Use namespaced events (.compose)
modal.js:
- Fix critical double event registration bug in editpost()
- Add isJotResetBound flag to ensure single handler binding
- Add isEditJotClosing guard for race condition protection
- Wrap in IIFE with 'use strict'
- Add feature detection for all external dependencies
- Use namespaced events (.frio, .frio-edit)
- Add JSDoc documentation
|
2026-02-27 13:23:03 +01:00 |
|