Subversion Repositories SmartDukaan

Rev

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

Rev 37886 Rev 37887
Line 712... Line 712...
712
    if ($note.length === 0) {
712
    if ($note.length === 0) {
713
        $note = $('<div class="scratch-eligibility-note" style="margin-top:4px;line-height:1.3;"></div>');
713
        $note = $('<div class="scratch-eligibility-note" style="margin-top:4px;line-height:1.3;"></div>');
714
        // Place below the entire input-group (so it spans the cell, not just the input width).
714
        // Place below the entire input-group (so it spans the cell, not just the input width).
715
        $input.closest('.input-group').after($note);
715
        $input.closest('.input-group').after($note);
716
    }
716
    }
-
 
717
    // Dedup: a single user action (tab-out of Unit Price) fires both `blur` AND `change`
-
 
718
    // events on this input, which previously appended two identical pills. Skip the
-
 
719
    // second fire when the value hasn't changed since the last check.
-
 
720
    if ($note.data('for-value') === raw) {
-
 
721
        return;
-
 
722
    }
-
 
723
    $note.data('for-value', raw);
717
    $note.empty();
724
    $note.empty();
718
    if (raw === '') {
725
    if (raw === '') {
-
 
726
        $note.removeData('for-value');
719
        return;
727
        return;
720
    }
728
    }
721
    var imeis = raw.split(',')
729
    var imeis = raw.split(',')
722
        .map(function (s) {
730
        .map(function (s) {
723
            return s.trim();
731
            return s.trim();