style: formatting

This commit is contained in:
Faris Ansari 2022-04-13 18:40:32 +05:30
parent 13cc0b9346
commit f4c363034e
2 changed files with 6 additions and 6 deletions

View file

@ -54,9 +54,9 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex
return this._autocompletions || [];
},
set: (value) => {
let getter = value
let getter = value;
if (typeof getter !== 'function') {
getter = () => value
getter = () => value;
}
if (!this._autocompletions) {
this._autocompletions = [];
@ -85,7 +85,7 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex
completions.push(...values);
}
return completions;
}
};
let autocompletions = get_autocompletions();
if (autocompletions.length) {
callback(
@ -104,7 +104,7 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex
})
);
}
}
};
ace.config.loadModule("ace/ext/language_tools", langTools => {
this.editor.setOptions({

View file

@ -331,11 +331,11 @@ frappe.ui.form.Form = class FrappeForm {
caption: 'image: ' + file.file_name,
value: `![](${file.file_url})`,
meta: 'image'
}
};
});
});
}
})
});
}
// REFRESH