Skip to content

Commit

Permalink
update demo api url
Browse files Browse the repository at this point in the history
  • Loading branch information
sagautam5 committed Apr 21, 2024
1 parent 21ce1e3 commit 9d9f067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function reloadProvinces(lang)
$('.ward').find("option:gt(0)").remove();
$.ajax({
url: '/local-states-nepal/demo/api/provinces.php?lang='+lang,
url: 'api/provinces.php?lang='+lang,
type: 'GET',
dataType: 'json',
}).done(function (data) {
Expand All @@ -104,7 +104,7 @@ function reloadProvinces(lang)
$('.ward').find("option:gt(0)").remove();
var selected = $(this).find(":selected").attr('value');
$.ajax({
url: '/local-states-nepal/demo/api/districts.php?lang='+lang+'&&province_id=' + selected,
url: 'api/districts.php?lang='+lang+'&&province_id=' + selected,
type: 'GET',
dataType: 'json',
}).done(function (data) {
Expand All @@ -120,7 +120,7 @@ function reloadProvinces(lang)
$('.ward').find("option:gt(0)").remove();
var selected = $(this).find(":selected").attr('value');
$.ajax({
url: '/local-states-nepal/demo/api/municipalities.php?lang='+lang+'&&district_id=' + selected,
url: 'api/municipalities.php?lang='+lang+'&&district_id=' + selected,
type: 'GET',
dataType: 'json',
}).done(function (data) {
Expand All @@ -135,7 +135,7 @@ function reloadProvinces(lang)
var selected = $(this).find(":selected").attr('value');
$('.ward').find("option:gt(0)").remove();
$.ajax({
url: '/local-states-nepal/demo/api/wards.php?lang='+lang+'&&municipality_id=' + selected,
url: 'api/wards.php?lang='+lang+'&&municipality_id=' + selected,
type: 'GET',
dataType: 'json',
}).done(function (data) {
Expand Down

0 comments on commit 9d9f067

Please sign in to comment.