mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Use no location when targeting is disabled.
This commit is contained in:
@@ -155,9 +155,10 @@ r.sponsored = {
|
||||
targeted = $form.find('#targeting').is(':checked'),
|
||||
target = $form.find('*[name="sr"]').val(),
|
||||
srname = targeted ? target : '',
|
||||
country = $('#country').val() || "",
|
||||
region = $('#region').val() || "",
|
||||
metro = $('#metro').val() || "",
|
||||
canGeotarget = !targeted || this.userIsSponsor,
|
||||
country = canGeotarget && $('#country').val() || "",
|
||||
region = canGeotarget && $('#region').val() || "",
|
||||
metro = canGeotarget && $('#metro').val() || "",
|
||||
geotarget = {'country': country, 'region': region, 'metro': metro},
|
||||
dates = r.sponsored.get_dates(startdate, enddate),
|
||||
booked = this.get_booked_inventory($form, srname, geotarget, isOverride),
|
||||
|
||||
Reference in New Issue
Block a user