Subversion Repositories SmartDukaan

Rev

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

Rev 12868 Rev 17403
Line 174... Line 174...
174
 
174
 
175
        if (!(a.indexOf(k)>=0)){
175
        if (!(a.indexOf(k)>=0)){
176
            e.preventDefault();
176
            e.preventDefault();
177
    	}
177
    	}
178
    });*/
178
    });*/
-
 
179
    
-
 
180
    $('#productLabelLink').live('click', function() {
-
 
181
		$("div#productLabelLinkDiv").show();
-
 
182
		$('#productLabelItemId').val('');
-
 
183
		$('#productLabelItemNo').val('');
-
 
184
		$.colorbox({
-
 
185
            inline : true,
-
 
186
            width : "400px",
-
 
187
            height : "200px",
-
 
188
            href : "div#productLabelLinkDiv",
-
 
189
            onClosed : function() {
-
 
190
                $("div#productLabelLinkDiv").hide();
-
 
191
            }
-
 
192
		});
-
 
193
	});
-
 
194
    
-
 
195
    $('#productLabelForm').live('submit', function() {
-
 
196
		var productLabelItemId = $("input[name='productLabelItemId']").val();
-
 
197
		if(productLabelItemId==null || productLabelItemId=="")
-
 
198
		{
-
 
199
			alert("Please enter Item Id");
-
 
200
			$('input[name=productLabelItemId]').focus();
-
 
201
			return false;
-
 
202
		}
-
 
203
		var productLabelItemNo = $("input[name='productLabelItemNo']").val();
-
 
204
		if(productLabelItemNo==null || productLabelItemNo=="")
-
 
205
		{
-
 
206
			alert("Please enter Item Number");
-
 
207
			$('input[name=productLabelItemNo]').focus();
-
 
208
			return false;
-
 
209
		}
-
 
210
		generateProductLabel($(this).serialize());
-
 
211
		return false;
-
 
212
	});
179
});
213
});