Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37498 38 d 10 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix: namespace document-level handlers in remaining vm fragments

Completes the sweep started in r37493/r37494. These fragments are injected
with .html(), which re-executes their inline <script>, so every load stacked
another $(document) delegated handler. Mutating handlers then fired N
identical requests and were rejected as duplicates; read-only ones silently
fired N GETs (never deduped, so no alert - just N times the load).

35 fragments, 70 bindings. Adopts the create-purchase-return.vm convention:
one $(document).off('.ns') before the first binding, every event namespaced,
so only the newest binding survives a re-injection.

Notes:
- ticket.vm binds via jQuery(document).on, which the earlier passes did not
match, and its clear must sit OUTSIDE ready() - that callback fires async,
so an inside-ready clear would wipe the top-level binds registered before it.
- agreement-esign-panel, full-stock-payment-panel and create-purchase-return
were left alone; they already clear their handlers (selector-targeted
.off('click', sel) and .off('.createpr') respectively).

Behaviour-preserving: every diff line is either a namespace suffix on an
event string or a new off() call. Selectors, handlers and ordering untouched.
Verified no unprotected document-level bindings remain in any fragment.
 
36206 186 d 6 h amit /trunk/profitmandi-fofo/src/main/webapp/ GRN correction: split space/comma-separated IMEIs in frontend, validate count, update placeholder text  
36136 191 d 9 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix date formatting: use dateFormatter (dd/MM/yyyy) instead of toLocalDate() in all GRN correction views  
36134 191 d 9 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix item description: use getItemDescription() (brand+model+number+color) instead of just modelName  
36132 191 d 9 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ GRN correction views: add invoice date, show item names in qty corrections, wrap JS in Velocity literal blocks  
36131 191 d 10 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix Velocity parse error: wrap JS in literal block to prevent jQuery $ conflicts  
35884 223 d 10 h amit /trunk/profitmandi-fofo/src/main/webapp/ Update GRN correction UI: rename labels, add IMEI field for serialized item corrections  
35806 232 d 6 h amit /trunk/profitmandi-fofo/src/main/ Add GRN correction controller, views, and JS. Fix XSS in correction detail template, add self-approval prevention, add null check on requestId