Subversion Repositories SmartDukaan

Rev

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

Rev 27171 Rev 27754
Line 87... Line 87...
87
															}
87
															}
88
														});
88
														});
89
									}
89
									}
90
								});
90
								});
91
					});
91
					});
92
	$("button.raise_po").live('click', function() {
92
	$(document).on('click', "button.raise_po", function() {
93
		if (confirm("Please confirm the PO")) {
93
		if (confirm("Please confirm the PO")) {
94
			raisePO();
94
			raisePO();
95
		} else {
95
		} else {
96
			return;
96
			return;
97
		}
97
		}
98
	});
98
	});
99
 
99
 
100
	$("li.mk_counter_size").live('click', function() {
100
	$(document).on('click', "li.mk_counter_size", function() {
101
		if ($(this).hasClass('active')) {
101
		if ($(this).hasClass('active')) {
102
			return;
102
			return;
103
		}
103
		}
104
		currentFofoId = 0;
104
		currentFofoId = 0;
105
		counterSize = $(this).find('a').html();
105
		counterSize = $(this).find('a').html();
106
		loadIndent('main-content');
106
		loadIndent('main-content');
107
	});
107
	});
108
	$("li.brandLi").live('click', function() {
108
	$(document).on('click', "li.brandLi", function() {
109
		if (!$(this).hasClass('active')) {
109
		if (!$(this).hasClass('active')) {
110
			$("table.brandPerformance").toggle();
110
			$("table.brandPerformance").toggle();
111
			$("li.brandLi").removeClass('active');
111
			$("li.brandLi").removeClass('active');
112
			$(this).addClass('active');
112
			$(this).addClass('active');
113
		}
113
		}
114
	});
114
	});
115
	
115
	
116
	$(".previous-month").live('click',function(){
116
	$(document).on('click', ".previous-month",function(){
117
		currentFofoId = 0;
117
		currentFofoId = 0;
118
		counterSize = '';
118
		counterSize = '';
119
		loadPreviousMonthIndent('main-content');
119
		loadPreviousMonthIndent('main-content');
120
	});
120
	});
121
	
121
	
122
	$(".current-month").live('click',function(){
122
	$(document).on('click', ".current-month",function(){
123
		currentFofoId = 0;
123
		currentFofoId = 0;
124
		counterSize = '';
124
		counterSize = '';
125
		loadIndent('main-content');
125
		loadIndent('main-content');
126
	});
126
	});
127
	$(document).on('click','a.create_indent',  function() {
127
	$(document).on('click','a.create_indent',  function() {
128
		currentFofoId = 0;
128
		currentFofoId = 0;
129
		counterSize = '';
129
		counterSize = '';
130
		loadIndent("main-content");
130
		loadIndent("main-content");
131
	});
131
	});
132
	$("button.create_indent").live('click', function() {
132
	$(document).on('click', "button.create_indent", function() {
133
		loadIndent("main-content");
133
		loadIndent("main-content");
134
	});
134
	});
135
 
135
 
136
	$("button.download_indent").live('click', function() {
136
	$(document).on('click', "button.download_indent", function() {
137
		downloadIndent();
137
		downloadIndent();
138
	})
138
	})
139
 
139
 
140
	$(document).on('change', "#entire-catalog-table input",
140
	$(document).on('change', "#entire-catalog-table input",
141
						function() {
141
						function() {
Line 265... Line 265...
265
	
265
	
266
			  }
266
			  }
267
 });
267
 });
268
		
268
		
269
	/*
269
	/*
270
	 * $("button.bk_toedit_indent").live('click', function() {
270
	 * $(document).on('click', "button.bk_toedit_indent", function() {
271
	 * $('button.bk_toedit_indent').hide(); $('button.confirm_indent').hide();
271
	 * $('button.bk_toedit_indent').hide(); $('button.confirm_indent').hide();
272
	 * $('button.mk_submit_indent').show(); $('#indent-container1').hide();
272
	 * $('button.mk_submit_indent').show(); $('#indent-container1').hide();
273
	 * $('#indent-container').show();
273
	 * $('#indent-container').show();
274
	 * 
274
	 * 
275
	 * });
275
	 * });