| Line 226... |
Line 226... |
| 226 |
createOfferRequest['targetType'] = $("input[name=targetType]:checked").val();
|
226 |
createOfferRequest['targetType'] = $("input[name=targetType]:checked").val();
|
| 227 |
createOfferRequest['payoutType'] = $("input[name=payoutType]:checked").val();
|
227 |
createOfferRequest['payoutType'] = $("input[name=payoutType]:checked").val();
|
| 228 |
createOfferRequest['schemeType'] = $("select[name=schemeType]").val();
|
228 |
createOfferRequest['schemeType'] = $("select[name=schemeType]").val();
|
| 229 |
createOfferRequest['booster'] = false;
|
229 |
createOfferRequest['booster'] = false;
|
| 230 |
createOfferRequest['activationBrands'] = null;
|
230 |
createOfferRequest['activationBrands'] = null;
|
| 231 |
createOfferRequest['discount'] = $("input[name=discount]:checked").val();
|
231 |
createOfferRequest['discount'] = $("input[name=discount]").is(':checked');
|
| 232 |
if (createOfferRequest['schemeType'] == 'ACTIVATION') {
|
232 |
if (createOfferRequest['schemeType'] == 'ACTIVATION') {
|
| 233 |
createOfferRequest['activationBrands'] = $("div.activation-brands select").val().join(",") || null;
|
233 |
createOfferRequest['activationBrands'] = $("div.activation-brands select").val().join(",") || null;
|
| 234 |
} else if (createOfferRequest['schemeType'] == 'SELLINBOOSTER') {
|
234 |
} else if (createOfferRequest['schemeType'] == 'SELLINBOOSTER') {
|
| 235 |
createOfferRequest['schemeType'] = 'SELLIN';
|
235 |
createOfferRequest['schemeType'] = 'SELLIN';
|
| 236 |
createOfferRequest['booster'] = true;
|
236 |
createOfferRequest['booster'] = true;
|