Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37493 39 d 2 h amit /trunk/profitmandi-fofo/src/main/ Fix: scheme item inline date edit fired N duplicate PUTs per click

scheme-details.vm is injected with .html(), which re-executes its inline
<script>, and a successful save re-injects it - so each load stacked another
$(document) handler for .edit/.cancel/.save-item-dates. One Save click then
fired N identical PUT /scheme/item/window, and PostInterceptor rejected all
but the first with 'Duplicate request.' (27 per click in prod today).
The stacked copies also carried a stale $scheme closure, so a save could
repaint the container with a previously viewed scheme.

Move the handlers to scheme.js (loaded once via include-scripts.vm) and read
the scheme id/window from data- attributes on the fragment root, keeping them
stateless. Fragment is now markup only.

Reuse cleanup while in here:
- configureMultiselect() replaces 3 near-identical multiselect configs
- loadBrandsByCategory/loadCatalogDescriptionByBrands take an optional
afterRender so the add-item modal reuses them instead of duplicating both
- toggleItemDateEdit()/initSingleDatePicker() collapse mirrored blocks
- SCHEME_DETAILS_CONTAINER single-sources the container id
- drop the template's duplicate toIsoDateTime (scheme.js already had it)
- updateSchemeItemWindow() now prefixes context like every other call

Bump jsVersion 409 -> 410.
 
36452 160 d 21 h amit /trunk/profitmandi-fofo/src/main/webapp/ Add reference field to offer/scheme create forms and admin views  
36421 164 d 21 h amit /trunk/profitmandi-fofo/src/main/webapp/ Feat:Scheme item date window — per-item start/end dates with inline editing, category→brand→model cascade in add-item modal, duplicate detection, full-width layout  
30680 1561 d 23 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Added scheme in processing for specified scheme ids  
30601 1584 d 4 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Added velocity  
30144 1678 d 3 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fixed ahead issue  
30122 1679 d 23 h amit.gupta /trunk/ Fixed issue  
30017 1698 d 5 h amit.gupta /trunk/ Fixed minor issues with price circular  
29899 1721 d 20 h tejbeer /trunk/profitmandi-fofo/src/main/ change  
28930 1884 d 18 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28929 1884 d 19 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28928 1884 d 19 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28927 1884 d 20 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28926 1884 d 20 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28923 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28922 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28920 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28919 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28918 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28917 1884 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28751 1900 d 23 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28750 1900 d 23 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
27873 2047 d 23 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
26318 2436 d 22 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ change  
25505 2589 d 7 h amit.gupta /trunk/  
25069 2672 d 2 h amit.gupta /trunk/ Fixed scheme expiry logic  
25068 2673 d 7 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
24445 2814 d 6 h amit.gupta /trunk/profitmandi-fofo/src/main/ Minor fixes  
23928 3005 d 4 h govind /trunk/profitmandi-fofo/src/main/ add multiple scheme to single item or vice versa  
23914 3006 d 22 h govind /trunk/ Extend EndDate Scheme by All and by schemeId.
Delete ItemId by SchemeId.
Add ItemId to SchemeId.
change dateRangePicker.
Create Scheme With Multiple Brand and Multiple Items.
 
23855 3020 d 4 h amit.gupta /trunk/ Added feature to pause listing  
23343 3165 d 20 h ashik.ali /trunk/profitmandi-fofo/src/main/ $insurancePolicy.getInsuranceProvider().getName() in Order Detail
Show Schemes active and then expired to Partners as well. Show expiry date as well
Optimized js with async true and catagorized
and some bugs
 
23340 3167 d 23 h ashik.ali /trunk/profitmandi-fofo/src/main/webapp/ Bug fixed  
23181 3194 d 22 h ashik.ali /trunk/profitmandi-fofo/src/main/webapp/  
23167 3196 d 19 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/ Fixed branding for fofo  
23164 3196 d 22 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/ changed branding color  
22860 3258 d 22 h ashik.ali /trunk/profitmandi-fofo/