Subversion Repositories SmartDukaan

Rev

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

Filtering Options

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

Same defect class as r37493. These fragments are injected with .html(),
which re-executes their inline <script>, so every load stacked another
$(document) delegated handler. One click then fired N identical requests;
PostInterceptor claimed the first and rejected the rest as duplicates.

Confirmed in prod today: beat-plan-day-view #avSubmit produced bursts of
3-4 rejections on POST /beatPlan/assignVisit/submit. The other four are the
same shape - chart-filter-lms, franchisee-account-creation and beat-plan-bulk
re-inject themselves directly, placement-plan-details does so indirectly by
clicking .search-partner-stock after createPo.

Adopt the create-purchase-return.vm convention: one $(document).off('.ns')
before the first binding, every event namespaced. Only the newest binding
survives, which also fixes handlers holding a stale Velocity closure from a
previously rendered record.

Behaviour-preserving: the only changes are the namespace suffix on 22 event
strings plus the five off() calls. Selectors, handlers and ordering untouched.

Read-only self-injecting fragments (activation-tabular, catalog,
partner-onboarding-*, etc) still stack handlers but only fire GETs, which are
never deduped - left for a separate pass.
 
37248 64 d 4 h vikas /trunk/ Updated Escalation Level  
37182 71 d 3 h amit /trunk/profitmandi-fofo/src/main/ PJP agenda assign: only non-auto agendas manually assignable; open instances woven into task_name server-side; revival visibility filter  
37178 71 d 6 h amit /trunk/profitmandi-fofo/src/main/ PJP agenda instances: manual close endpoint (MANUAL-only, AUTO guarded) + agenda chips  
37175 71 d 6 h amit /trunk/profitmandi-fofo/src/main/ PJP agenda instances: day view shows open instances, creates MANUAL instances on assign  
37120 84 d 1 h vikas /trunk/ Added leads in Beat Creation  
36962 101 d 3 h vikas /trunk/ L4 and Above can now assign beat on same day  
36821 121 d 2 h ranu /trunk/profitmandi-fofo/src/main/ code commit for agenda fill time stamp  
36761 128 d 23 h ranu /trunk/profitmandi-fofo/src/main/ some Enhancements or changes  
36716 134 d 23 h ranu /trunk/profitmandi-fofo/src/main/ beat plan info commit  
36663 138 d 21 h ranu /trunk/profitmandi-fofo/src/main/ beat plan info commit  
36662 139 d 0 h ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ beat plan info commit