Subversion Repositories SmartDukaan

Rev

Rev 34798 | Rev 35268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34798 Rev 35104
Line 369... Line 369...
369
    $(function () {
369
    $(function () {
370
        initMultiselect('select[name="productCategory"]', 'Categories')
370
        initMultiselect('select[name="productCategory"]', 'Categories')
371
        initMultiselect('select[name="partnerInfo"]', 'Partner')
371
        initMultiselect('select[name="partnerInfo"]', 'Partner')
372
        initMultiselect('select[name="paymentMethod"]', 'Payment method')
372
        initMultiselect('select[name="paymentMethod"]', 'Payment method')
373
    })
373
    })
-
 
374
    $(document).on('change', '.partnerInfo', function () {
-
 
375
        const partnerSelect = $(this);
-
 
376
        const csvInput = partnerSelect.closest('tr').find('.fofo-store-file');
-
 
377
 
-
 
378
        if (partnerSelect.val() && partnerSelect.val().length > 0) {
-
 
379
            // Partner selected → disable CSV
-
 
380
            csvInput.prop('disabled', true).val('');
-
 
381
        } else {
-
 
382
            // No partner selected → enable CSV
-
 
383
            csvInput.prop('disabled', false);
-
 
384
        }
-
 
385
    });
-
 
386
 
374
</script>
387
</script>
375
<script>
388
<script>
376
    $(function () {
389
    $(function () {
377
        $('#scratchOfferTable').DataTable({
390
        $('#scratchOfferTable').DataTable({
378
            "bPaginate": true,
391
            "bPaginate": true,
Line 382... Line 395...
382
            "bAutoWidth": false,
395
            "bAutoWidth": false,
383
            "pageLength": 20,
396
            "pageLength": 20,
384
        });
397
        });
385
    });
398
    });
386
 
399
 
387
</script>
-
 
388
400
</script>
-
 
401