Subversion Repositories SmartDukaan

Rev

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

Rev 27813 Rev 27816
Line 404... Line 404...
404
                        </button>
404
                        </button>
405
                    </td>
405
                    </td>
406
 
406
 
407
                    <td>
407
                    <td>
408
                        <button type="submit" form="form2" value="Submit1" data-id="$pob.getId()"
408
                        <button type="submit" form="form2" value="Submit1" data-id="$pob.getId()"
409
                                style="background:#f18681;"
409
                                style="background:#eed202;"
410
                                class="delete">open
410
                                class="delete">open
411
                        </button>
411
                        </button>
412
                    </td>
412
                    </td>
413
                    
413
                    
414
                    <td>
414
                    <td>
Line 430... Line 430...
430
 
430
 
431
<script type="text/javascript">
431
<script type="text/javascript">
432
 
432
 
433
 
433
 
434
    $(document).ready(function () {
434
    $(document).ready(function () {
-
 
435
  /*    $('#example thead tr').clone(true).appendTo( '#example thead' );
-
 
436
   $('#example thead tr:eq(1) th').each( function (i) {
435
    
437
        var title = $(this).text();
-
 
438
        $(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
436
 
439
 
-
 
440
        $( 'input', this ).on( 'keyup change', function () {
-
 
441
            if ( table.column(i).search() !== this.value ) {
-
 
442
                table
-
 
443
                    .column(i)
-
 
444
                    .search( this.value )
-
 
445
                    .draw();
-
 
446
            }
-
 
447
        } );
-
 
448
    } )*/
437
 
449
 
438
        var dtable = $('#example').DataTable(
450
        var dtable = $('#example').DataTable(
439
                {
451
                {
440
 
452
 
441
                    "bPaginate": true,
453
                    "bPaginate": true,
Line 443... Line 455...
443
                    "bFilter": true,
455
                    "bFilter": true,
444
                    "bInfo": false,
456
                    "bInfo": false,
445
                    "bAutoWidth": false,
457
                    "bAutoWidth": false,
446
                    "scrollX": true,
458
                    "scrollX": true,
447
                 
459
                 
-
 
460
                   "columnDefs": [
-
 
461
                   { "targets": 3, "orderDataType": "dom-text", "type": "string" },
-
 
462
                   { "targets": 4, "orderDataType": "dom-text", "type": "string" },
-
 
463
                  { "targets": 5, "orderDataType": "dom-text", "type": "string" },
-
 
464
                  { "targets": 6, "orderDataType": "dom-text", "type": "string" },
-
 
465
                  { "targets": 7, "orderDataType": "dom-text", "type": "string" },
-
 
466
                  { "targets": 9, "orderDataType": "dom-text", "type": "string" },  
-
 
467
                  { "targets": 10, "orderDataType": "dom-text", "type": "string" },
-
 
468
                  { "targets": 12, "orderDataType": "dom-text", "type": "string" },
-
 
469
                  { "targets": 21, "orderDataType": "dom-text", "type": "string" },
-
 
470
                { "targets": 26, "orderDataType": "dom-text", "type": "string" }
448
                   
471
                        ]
449
                });
472
                });
450
 
473
 
451
      
-
 
452
 
-
 
453
        $('.reject').on('click', function () {
-
 
454
            var id = $(this).data('id');
-
 
455
            console.log('helo');
-
 
456
            var id = $(this).data('id');
-
 
457
            console.log(id);
-
 
458
            if (confirm("Are you sure you want to reject the request") == true) {
-
 
459
            doPostAjaxRequestHandler(context + "/partnerOnBoardingReject?id=" + id,
-
 
460
                    function (response) {
-
 
461
 
-
 
462
                        console.log("reponse" + response);
-
 
463
                        if (response == 'true') {
-
 
464
                             alert("successfully rejected");
-
 
465
                            panelListing("main-content");
-
 
466
                        }
-
 
467
                    });
-
 
468
                    }
-
 
469
 
474
 
-
 
475
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
-
 
476
      {
-
 
477
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
478
        return $('input', td).val();
470
        });
479
    } );
-
 
480
  }
-
 
481
 
-
 
482
/* Create an array with the values of all the input boxes in a column, parsed as numbers */
-
 
483
$.fn.dataTable.ext.order['dom-text-numeric'] = function  ( settings, col )
-
 
484
{
-
 
485
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
486
    return $('input', td).val() * 1;
-
 
487
    } );
-
 
488
}  
471
        function partnerOnBoardingListingJson() {
489
     function partnerOnBoardingListingJson() {
472
            var prebookingListingObject = {};
490
            var prebookingListingObject = {};
473
            prebookingListingObject['outletName'] = $('#outLetName1').val();
491
            prebookingListingObject['outletName'] = $('#outLetName1').val();
474
            prebookingListingObject['phoneNumber'] = $('#number1').val();
492
            prebookingListingObject['phoneNumber'] = $('#number1').val();
475
            acquireddate1 =$('#acquireddate1').val();
493
            acquireddate1 =$('#acquireddate1').val();
476
            if (acquireddate1 != "") {
494
            if (acquireddate1 != "") {