Subversion Repositories SmartDukaan

Rev

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

Rev 9925 Rev 10324
Line 76... Line 76...
76
 
76
 
77
    $('.cancel-change-po-warehouse').live('click', function() {
77
    $('.cancel-change-po-warehouse').live('click', function() {
78
        $(this).parent().siblings('.change-po-warehouse').show();
78
        $(this).parent().siblings('.change-po-warehouse').show();
79
        $(this).parent().hide();
79
        $(this).parent().hide();
80
    });
80
    });
-
 
81
    
-
 
82
    $('.cForm-class').change(function() {
-
 
83
    	if ($(this).is(':checked')) {
-
 
84
    		$(".cstCostTypeDiv-class").show();
-
 
85
    		$('.cstCostType-class').val('ours');
-
 
86
    		$('.extraCstInputs-class').hide();
-
 
87
    	}
-
 
88
    	else{
-
 
89
    		$(".cstCostTypeDiv-class").hide();
-
 
90
    		$('.cstCostType-class').val('ours');
-
 
91
    		$('.extraCstInputs-class').hide();
-
 
92
    	}
-
 
93
    });
-
 
94
    
-
 
95
    $('.cstCostType-class').change(function() {
-
 
96
    	var cstCostType = $(this).val();
-
 
97
    	if(cstCostType=="custom"){
-
 
98
    		$('.extraCstInputs-class').show();
-
 
99
    		$('.cstBorneByUs-class').val('0.00');
-
 
100
    	}
-
 
101
    	else{
-
 
102
    		$('.extraCstInputs-class').hide();
-
 
103
    		$('.cstBorneByUs-class').val('0.00');
-
 
104
    	}
-
 
105
    });
81
});
106
});