Subversion Repositories SmartDukaan

Rev

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

Rev 14600 Rev 14849
Line 67... Line 67...
67
        }
67
        }
68
    });        
68
    });        
69
    $('#MasterDataInStock').on('change',function(){
69
    $('#MasterDataInStock').on('change',function(){
70
        console.log($('#MasterDataInStock option:selected').text());
70
        console.log($('#MasterDataInStock option:selected').text());
71
        $('#MasterDataStockStatus').val($('#MasterDataInStock option:selected').text());
71
        $('#MasterDataStockStatus').val($('#MasterDataInStock option:selected').text());
72
    });    
72
    });  
-
 
73
    $('#NotificationRuleType').on('change',function(){
-
 
74
        if($('#NotificationRuleType option:selected').text() =='Popup'){
-
 
75
            $('#NotificationRulePopupDisplayCount').prop('disabled',false);
-
 
76
            $('#NotificationRulePopupDisplayInterval').prop('disabled',false);
-
 
77
        }else{
-
 
78
            $('#NotificationRulePopupDisplayCount').prop('disabled',true);
-
 
79
            $('#NotificationRulePopupDisplayInterval').prop('disabled',true);
-
 
80
        }
-
 
81
    })
73
});
82
});
74
function isNumeric(value) {
83
function isNumeric(value) {
75
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
84
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
76
  return true;
85
  return true;
77
}
86
}
78
87