This commit is contained in:
@@ -889,6 +889,18 @@ async function clickHandler(menuItem) {
|
||||
params: { recordid: res.id, ayatype: window.$gz.type.Customer }
|
||||
});
|
||||
}
|
||||
break;
|
||||
case "geocapture":
|
||||
try {
|
||||
let loc = await window.$gz.util.getGeoLocation();
|
||||
m.vm.obj.latitude = loc.latitude;
|
||||
m.vm.fieldValueChanged("latitude");
|
||||
m.vm.obj.longitude = loc.longitude;
|
||||
m.vm.fieldValueChanged("longitude");
|
||||
} catch (ex) {
|
||||
window.$gz.errorHandler.handleFormError(ex, m.vm);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
@@ -1011,6 +1023,7 @@ async function initForm(vm) {
|
||||
//
|
||||
async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"Customer",
|
||||
"CustomerName",
|
||||
"CustomerNotes",
|
||||
"WebAddress",
|
||||
|
||||
Reference in New Issue
Block a user