Subversion Repositories SmartDukaan

Rev

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

Rev 27755 Rev 30599
Line 221... Line 221...
221
		$('#' + domId).html(response);
221
		$('#' + domId).html(response);
222
		$('#prebooking-listing-details-container').html('');
222
		$('#prebooking-listing-details-container').html('');
223
	});
223
	});
224
}
224
}
225
function updatePrebookingListing(prebookingListingId, offset, domId) {
225
function updatePrebookingListing(prebookingListingId, offset, domId) {
-
 
226
	datepickerRange = getDatesFromPicker('input[name="duration"]');
226
	doAjaxRequestHandler(context
227
	doAjaxRequestHandler(context
227
			+ "/updatePrebookingListingById?prebookingListingId="
228
		+ "/updatePrebookingListingById?prebookingListingId="
228
			+ prebookingListingId + "&activeTimestamp=" + startDate
229
		+ prebookingListingId + "&activeTimestamp=" + datepickerRange.startDate
229
			+ "&expireTimestamp=" + endDate + "&offset=" + offset, "PUT",
230
		+ "&expireTimestamp=" + datepickerRange.endDate + "&offset=" + offset, "PUT",
230
			function(response) {
231
		function (response) {
231
				$('#' + domId).html(response);
232
			$('#' + domId).html(response);
232
				$('#prebooking-listing-details-container').html('');
233
			$('#prebooking-listing-details-container').html('');
233
			});
234
		});
234
}
235
}
235
236