Subversion Repositories SmartDukaan

Rev

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

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