Subversion Repositories SmartDukaan

Rev

Rev 31568 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31568 Rev 31570
Line 205... Line 205...
205
	webListingBannerUrl = $("#web-listing-bannerurl").val();
205
	webListingBannerUrl = $("#web-listing-bannerurl").val();
206
 
206
 
207
	webListingSource = $("#listingSource").val();
207
	webListingSource = $("#listingSource").val();
208
 
208
 
209
	webListingType = $("#webType").val();
209
	webListingType = $("#webType").val();
210
 
-
 
-
 
210
	webSolrQuery = $("#web-listing-solrQuery").val();
211
 
211
 
212
	webListingHeaderUrl = $("#web-listing-headerurl").val();
212
	webListingHeaderUrl = $("#web-listing-headerurl").val();
213
 
213
 
214
	if (webListingTitle === "") {
214
	if (webListingTitle === "") {
215
		alert("Title is required!");
215
		alert("Title is required!");
Line 235... Line 235...
235
		alert("Type  is required!");
235
		alert("Type  is required!");
236
		return false;
236
		return false;
237
	}
237
	}
238
 
238
 
239
 
239
 
-
 
240
	json = {
240
	json = { title: webListingTitle, url: webListingUrl, rank: webListingRank, bannerUrl: webListingBannerUrl, headerUrl: webListingHeaderUrl, targetSource: webListingSource, type: webListingType };
241
		title: webListingTitle, url: webListingUrl, rank: webListingRank, bannerUrl: webListingBannerUrl, headerUrl: webListingHeaderUrl,
-
 
242
		targetSource: webListingSource, type: webListingType, solrQuery: webSolrQuery
-
 
243
	};
241
 
244
 
242
	console.log(json)
245
	console.log(json)
243
	doPostAjaxRequestWithJsonHandler(context + "/web-listing/add", JSON.stringify(json), function(response) {
246
	doPostAjaxRequestWithJsonHandler(context + "/web-listing/add", JSON.stringify(json), function(response) {
244
		$('#main-content').html(response);
247
		$('#main-content').html(response);
245
	});
248
	});