Advertisement:

Author Topic: Userprofile: city select not returning to 'select'  (Read 425 times)

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Userprofile: city select not returning to 'select'
« on: July 28, 2015, 01:56:44 am »
Hi there,

I think there's a minor issue in user-profile.php when user is editing.
More specific, existing userprofile being edited by user, Region select is 'reset' to 'Select...', this makes the City select disabled BUT the earlier selected city is still shown. Please confirm issue.

My solution: (maybe javascript is not 100% due to my upgraded jquery)
In file: oc-includes/osclass/frm/User.form.class.php after line 425 add the code:
Code: [Select]
$("#cityId").val('');
This will 'reset' the city selector to it's original state in case the region is reset to 'Select a region...'


Regards,
Eric