Subversion Repositories SmartDukaan

Rev

Rev 37455 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37455 Rev 37457
Line 475... Line 475...
475
var table = $('#fofokyctable').DataTable();
475
var table = $('#fofokyctable').DataTable();
476
$(document).on('dblclick', '#fofokyctable tbody tr', function () {
476
$(document).on('dblclick', '#fofokyctable tbody tr', function () {
477
    console.log("dblclick");
477
    console.log("dblclick");
478
    var data = table.row(this).data();
478
    var data = table.row(this).data();
479
 
479
 
480
    $(this).find(":selected").attr('disabled', false).show();
480
    $(this).find(":selected").not('[data-gst-locked]').attr('disabled', false).show();
-
 
481
    // State stays locked when it came from the LOI's GSTIN - the GSTIN's first two
-
 
482
    // digits are its state code, so there is nothing for the operator to decide.
481
    $(this).find(":input").attr('disabled', false).show();
483
    $(this).find(":input").not('[data-gst-locked]').attr('disabled', false).show();
482
 
484
 
483
 
485
 
484
});
486
});
485
 
487
 
486
 
488
 
Line 685... Line 687...
685
var table = $('#legalkyctable').DataTable();
687
var table = $('#legalkyctable').DataTable();
686
$(document).on('dblclick', '#legalkyctable tbody tr', function () {
688
$(document).on('dblclick', '#legalkyctable tbody tr', function () {
687
    console.log("dblclick");
689
    console.log("dblclick");
688
    var data = table.row(this).data();
690
    var data = table.row(this).data();
689
 
691
 
690
    $(this).find(":selected").attr('disabled', false).show();
692
    $(this).find(":selected").not('[data-gst-locked]').attr('disabled', false).show();
-
 
693
    // State stays locked when it came from the LOI's GSTIN - the GSTIN's first two
-
 
694
    // digits are its state code, so there is nothing for the operator to decide.
691
    $(this).find(":input").attr('disabled', false).show();
695
    $(this).find(":input").not('[data-gst-locked]').attr('disabled', false).show();
692
 
696
 
693
 
697
 
694
});
698
});
695
 
699
 
696
 
700