Subversion Repositories SmartDukaan

Rev

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

Rev 17424 Rev 17426
Line 177... Line 177...
177
    	}
177
    	}
178
    });*/
178
    });*/
179
    
179
    
180
    $('.link-requiring-itemid-for-productlabel').live('click', function(){
180
    $('.link-requiring-itemid-for-productlabel').live('click', function(){
181
    	var linkurl = $(this).attr('href');
181
    	var linkurl = $(this).attr('href');
182
    	$('<form id = "tempForm" target=_blank onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');
182
    	$('<form id = "tempForm" target=# onsubmit = "closeColorBox() "style = "text-align:center" method = "GET" action = "'+ linkurl +'">').appendTo('body');
183
    	
183
    	
184
    	$('form#tempForm').append($('<span>Specify Item Id: </span><input type = "text" name = "productLabelItemId" />'));
184
    	$('form#tempForm').append($('<span>Specify Item Id: </span><input type = "text" name = "productLabelItemId" />'));
185
    	$('form#tempForm').append($('<span>Specify Item No: </span><input type = "text" name = "productLabelItemNo" />'));
185
    	$('form#tempForm').append($('<span>Specify Item No: </span><input type = "text" name = "productLabelItemNo" />'));
186
    	$('form#tempForm').append($('<input type = "submit"  value = "Submit"/>'));
186
    	$('form#tempForm').append($('<input type = "submit"  value = "Submit"/>'));
187
    	
187
    	
Line 201... Line 201...
201
    	return false;
201
    	return false;
202
    	
202
    	
203
    });
203
    });
204
 
204
 
205
    function closeColorBox(){
205
    function closeColorBox(){
-
 
206
    	$.colorbox.close();
206
    	var productLabelItemId = $("input[name='productLabelItemId']").val();
207
    	var productLabelItemId = $("input[name='productLabelItemId']").val();
207
		if(productLabelItemId==null || productLabelItemId=="")
208
		if(productLabelItemId==null || productLabelItemId=="")
208
		{
209
		{
209
			alert("Please enter Item Id");
210
			alert("Please enter Item Id");
210
			$('input[name=productLabelItemId]').focus();
211
			$('input[name=productLabelItemId]').focus();
Line 215... Line 216...
215
		{
216
		{
216
			alert("Please enter Item Number");
217
			alert("Please enter Item Number");
217
			$('input[name=productLabelItemNo]').focus();
218
			$('input[name=productLabelItemNo]').focus();
218
			return false;
219
			return false;
219
		}
220
		}
220
		$.colorbox.close();
-
 
221
    }
221
    }
222
});
222
});