| Line 58... |
Line 58... |
| 58 |
event.preventDefault();
|
58 |
event.preventDefault();
|
| 59 |
if (validatePrebookingListingDetails()) {
|
59 |
if (validatePrebookingListingDetails()) {
|
| 60 |
alert("Please fix errors");
|
60 |
alert("Please fix errors");
|
| 61 |
return false;
|
61 |
return false;
|
| 62 |
}
|
62 |
}
|
| 63 |
var json = prebookingListingDetailsJson();
|
63 |
let json = prebookingListingDetailsJson();
|
| 64 |
console
|
64 |
console
|
| 65 |
.log("prebookingListingJson = "
|
65 |
.log("prebookingListingJson = "
|
| 66 |
+ json);
|
66 |
+ json);
|
| 67 |
if (confirm("Are you sure you want to create Prebooking Listing!") == true) {
|
67 |
if (confirm("Are you sure you want to create Prebooking Listing!") == true) {
|
| 68 |
doAjaxRequestWithJsonHandler(
|
68 |
doAjaxRequestWithJsonHandler(
|
| Line 149... |
Line 149... |
| 149 |
prebookingListingObject['advanceAmount'] = $("#advanceAmount").val();
|
149 |
prebookingListingObject['advanceAmount'] = $("#advanceAmount").val();
|
| 150 |
prebookingListingObject['tentativeAmount'] = $('#tentativeAmount').val();
|
150 |
prebookingListingObject['tentativeAmount'] = $('#tentativeAmount').val();
|
| 151 |
prebookingListingObject['catalogId'] = itemCatalogId;
|
151 |
prebookingListingObject['catalogId'] = itemCatalogId;
|
| 152 |
prebookingListingObject['placementPolicy'] = $('#placementPolicy').val();
|
152 |
prebookingListingObject['placementPolicy'] = $('#placementPolicy').val();
|
| 153 |
prebookingListingObject['activationPolicy'] = $('#activationPolicy').val();
|
153 |
prebookingListingObject['activationPolicy'] = $('#activationPolicy').val();
|
| 154 |
prebookingListingObject['activeTimestamp'] = startDate;
|
154 |
prebookingListingObject['activeTimestamp'] = getDatesFromPicker($('input[name="duration"]')).startDate;
|
| 155 |
prebookingListingObject['expireTimestamp'] = endDate;
|
155 |
prebookingListingObject['expireTimestamp'] = getDatesFromPicker($('input[name="duration"]')).endDate;
|
| 156 |
return JSON.stringify(prebookingListingObject);
|
156 |
return JSON.stringify(prebookingListingObject);
|
| 157 |
}
|
157 |
}
|
| 158 |
|
158 |
|