Subversion Repositories SmartDukaan

Rev

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

Rev 14584 Rev 14600
Line 52... Line 52...
52
    		return false;
52
    		return false;
53
    	}else{
53
    	}else{
54
    		$('#UserPushForm').submit();
54
    		$('#UserPushForm').submit();
55
    	}
55
    	}
56
    })    
56
    })    
-
 
57
    $('#MasterDataCategoryId').on('change',function(){
-
 
58
        console.log($('#MasterDataCategoryId option:selected').text());
-
 
59
        $('#MasterDataCategory').val($('#MasterDataCategoryId option:selected').text());
-
 
60
    });
-
 
61
    $('#MasterDataSourceId').on('change',function(){
-
 
62
        console.log($("#MasterDataSourceId option:selected").text());
-
 
63
        $('#MasterDataSource').val($("#MasterDataSourceId option:selected").text());
-
 
64
        $('#MasterDataSecondaryIdentifier').prop('required',false);
-
 
65
        if($(this).val()==3){
-
 
66
            $('#MasterDataSecondaryIdentifier').prop('required','required');
-
 
67
        }
-
 
68
    });        
-
 
69
    $('#MasterDataInStock').on('change',function(){
-
 
70
        console.log($('#MasterDataInStock option:selected').text());
-
 
71
        $('#MasterDataStockStatus').val($('#MasterDataInStock option:selected').text());
-
 
72
    });    
57
});
73
});
58
function isNumeric(value) {
74
function isNumeric(value) {
59
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
75
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
60
  return true;
76
  return true;
61
}
77
}
62
78