|
@@ -281,7 +281,7 @@
|
|
data: {
|
|
data: {
|
|
form: {
|
|
form: {
|
|
are_you_a_gastroenterologist: "{{ old('are_you_a_gastroenterologist') }}",
|
|
are_you_a_gastroenterologist: "{{ old('are_you_a_gastroenterologist') }}",
|
|
- years_in_practice: 0
|
|
|
|
|
|
+ years_in_practice: "{{ old('years_in_practice') }}"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -315,6 +315,10 @@
|
|
slider.noUiSlider.on('update', function(values, handle) {
|
|
slider.noUiSlider.on('update', function(values, handle) {
|
|
self.form.years_in_practice = values[0];
|
|
self.form.years_in_practice = values[0];
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ @if(old('years_in_practice'))
|
|
|
|
+ slider.noUiSlider.set(old('years_in_practice'));
|
|
|
|
+ @endif
|
|
},
|
|
},
|
|
init: function() {
|
|
init: function() {
|
|
this.initRangeSlider();
|
|
this.initRangeSlider();
|