Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Create link (with GET params) to API
- */
- function createURL(id, year, month) {
- var pageURL = "/site/scripts/calendar_json.php";
- var getParams = {
- id: "recordID=" + id,
- year: "year=" + year,
- month: "month=" + month,
- numGuests: "numGuests=" + $("#selectNumGuests option:selected").text(),
- stayLength: "lengthOfStay=" + $("#selectStayLength option:selected").text()
- };
- return pageURL + objToGetParams(getParams);
- }
Add Comment
Please, Sign In to add comment