update timeout
This commit is contained in:
parent
015ea5ea1d
commit
746715267f
@ -73,10 +73,10 @@
|
|||||||
$('#{{$route[0].'_'.$route[1]}}_country_id').val(response.city.province.country_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_country_id').val(response.city.province.country_id).change();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#{{$route[0].'_'.$route[1]}}_province_id').val(response.city.province_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_province_id').val(response.city.province_id).change();
|
||||||
}, 1000);
|
}, 500);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#{{$route[0].'_'.$route[1]}}_city_id').val(response.city_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_city_id').val(response.city_id).change();
|
||||||
}, 2000);
|
}, 1000);
|
||||||
$('#{{$route[0].'_'.$route[1]}}_status').prop('checked', response.status==="1");
|
$('#{{$route[0].'_'.$route[1]}}_status').prop('checked', response.status==="1");
|
||||||
$('.form_{{$route[0].'_'.$route[1]}}').attr('action', '{{ URL::to('/'.$route[0].'/'.$route[1].'/') }}/' + response.id).append('<input type="hidden" name="_method" value="PUT">');
|
$('.form_{{$route[0].'_'.$route[1]}}').attr('action', '{{ URL::to('/'.$route[0].'/'.$route[1].'/') }}/' + response.id).append('<input type="hidden" name="_method" value="PUT">');
|
||||||
$('#kt_modal_{{$route[0].'_'.$route[1]}}').modal('show');
|
$('#kt_modal_{{$route[0].'_'.$route[1]}}').modal('show');
|
||||||
|
@ -74,15 +74,15 @@
|
|||||||
$('#{{$route[0].'_'.$route[1]}}_country_id').val(response.district.city.province.country_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_country_id').val(response.district.city.province.country_id).change();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#{{$route[0].'_'.$route[1]}}_province_id').val(response.district.city.province_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_province_id').val(response.district.city.province_id).change();
|
||||||
}, 1000);
|
}, 500);
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#{{$route[0].'_'.$route[1]}}_city_id').val(response.district.city_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_city_id').val(response.district.city_id).change();
|
||||||
}, 2000);
|
}, 1000);
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$('#{{$route[0].'_'.$route[1]}}_district_id').val(response.district_id).change();
|
$('#{{$route[0].'_'.$route[1]}}_district_id').val(response.district_id).change();
|
||||||
}, 3000);
|
}, 1500);
|
||||||
$('#{{$route[0].'_'.$route[1]}}_status').prop('checked', response.status==="1");
|
$('#{{$route[0].'_'.$route[1]}}_status').prop('checked', response.status==="1");
|
||||||
$('.form_{{$route[0].'_'.$route[1]}}').attr('action', '{{ URL::to('/'.$route[0].'/'.$route[1].'/') }}/' + response.id).append('<input type="hidden" name="_method" value="PUT">');
|
$('.form_{{$route[0].'_'.$route[1]}}').attr('action', '{{ URL::to('/'.$route[0].'/'.$route[1].'/') }}/' + response.id).append('<input type="hidden" name="_method" value="PUT">');
|
||||||
$('#kt_modal_{{$route[0].'_'.$route[1]}}').modal('show');
|
$('#kt_modal_{{$route[0].'_'.$route[1]}}').modal('show');
|
||||||
|
Loading…
Reference in New Issue
Block a user