Subversion Repositories SmartDukaan

Rev

Rev 26738 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
26731 amit.gupta 1
$(function() {
2
	$(".web-listing").live('click', function() {
3
		loadWebListing("main-content");
4
	});
5
});
6
 
7
function loadWebListing(domId) {
8
	doAjaxRequestHandler(context + "/web-listing", "GET", function(response) {
9
		$('#' + domId).html(response);
10
	});
11
}
12
function addWebLisiting() {
13
	webListingTitle = $("#web-listing-title");
14
	webListingUrl = $("#web-listing-url");
15
	json = {title:webListingTitle, url : webListingUrl};
16
	doPostAjaxRequestWithJsonHandler(context + "/web-listing/add", json, function(response) {
17
		$('#' + domId).html(response);
18
	});
19
	return false;
20
}
21
 
22
 
23
 
24