style: linting fixes
This commit is contained in:
parent
9ca43ee10f
commit
3b2c385d2b
6 changed files with 5 additions and 8 deletions
|
|
@ -57,7 +57,6 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
|
|||
else {
|
||||
return frappe.get_route && frappe.get_route()[0] === 'List' ? frappe.get_route()[1] : null;
|
||||
}
|
||||
return '';
|
||||
},
|
||||
setup_buttons: function() {
|
||||
if(this.only_input && !this.with_link_btn) {
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ frappe.ui.form.ControlTable = frappe.ui.form.Control.extend({
|
|||
});
|
||||
frappe.hide_progress();
|
||||
return false; // Prevent the default handler from running.
|
||||
})
|
||||
});
|
||||
},
|
||||
refresh_input: function() {
|
||||
this.grid.refresh();
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export default class Grid {
|
|||
me.get_selected_children().forEach((doc) => {
|
||||
tasks.push(() => {
|
||||
if (!me.frm) {
|
||||
me.df.data = me.get_data()
|
||||
me.df.data = me.get_data();
|
||||
me.df.data = me.df.data.filter((row)=> row.idx != doc.idx);
|
||||
}
|
||||
me.grid_rows_by_docname[doc.name].remove();
|
||||
|
|
@ -780,4 +780,4 @@ export default class Grid {
|
|||
// hide all custom buttons
|
||||
this.grid_buttons.find('.btn-custom').addClass('hidden');
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ frappe.ui.WebForm = class WebForm extends frappe.ui.FieldGroup {
|
|||
}
|
||||
|
||||
on(fieldname, handler) {
|
||||
let field = web_form.fields_dict[fieldname];
|
||||
let field = this.fields_dict[fieldname];
|
||||
field.input.addEventListener("focus", () =>
|
||||
handler(field, field.value)
|
||||
);
|
||||
|
|
@ -48,7 +48,7 @@ frappe.ui.WebForm = class WebForm extends frappe.ui.FieldGroup {
|
|||
}
|
||||
|
||||
setup_primary_action() {
|
||||
this.add_button(web_form.button_label || "Save", "primary", () =>
|
||||
this.add_button(this.button_label || "Save", "primary", () =>
|
||||
this.save(this.accept_payment && !this.doc.paid)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ def is_web_form(path):
|
|||
return bool(frappe.get_all("Web Form", filters={'route': path}))
|
||||
|
||||
def render_web_form(path):
|
||||
web_form_name = frappe.get_all("Web Form", filters={'route': path})[0].name
|
||||
data = render_page(path)
|
||||
return data
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,6 @@ def set_route(context):
|
|||
quoted(context.doc.name))
|
||||
|
||||
def prepare_filters(doctype, controller, kwargs):
|
||||
import json
|
||||
for key in kwargs.keys():
|
||||
try:
|
||||
kwargs[key] = json.loads(kwargs[key])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue