Subversion Repositories SmartDukaan

Rev

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

Rev 37458 Rev 37498
Line 565... Line 565...
565
        </div>
565
        </div>
566
    </div>
566
    </div>
567
 
567
 
568
</section>
568
</section>
569
<script>
569
<script>
-
 
570
    // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
571
    // namespace first so handlers replace rather than stack.
-
 
572
    $(document).off('.loiform');
570
    $(document).on('blur', 'input[name="storePotential"]', function () {
573
    $(document).on('blur.loiform', 'input[name="storePotential"]', function () {
571
        const walletValue = parseInt($('select[name="agreeWalletValue"]').val());
574
        const walletValue = parseInt($('select[name="agreeWalletValue"]').val());
572
        const storePotantial = parseInt($('input[name="storePotential"]').val());
575
        const storePotantial = parseInt($('input[name="storePotential"]').val());
573
        if (walletValue > storePotantial) {
576
        if (walletValue > storePotantial) {
574
            alert("Store Potential must be greater than or equal to Wallet Value ")
577
            alert("Store Potential must be greater than or equal to Wallet Value ")
575
            return false;
578
            return false;