style: formatting
This commit is contained in:
parent
13cc0b9346
commit
f4c363034e
2 changed files with 6 additions and 6 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -331,11 +331,11 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
caption: 'image: ' + file.file_name,
|
||||
value: ``,
|
||||
meta: 'image'
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// REFRESH
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue