[fix][webform] form -> div, comply with template

This commit is contained in:
Prateeksha Singh 2018-06-27 16:54:42 +05:30 committed by GitHub
parent a7a3d0da20
commit db3338db40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ frappe.ready(function() {
const { web_form_doctype: doctype, doc_name: docname, web_form_name } = web_form_settings;
const wrapper = $(`.webform-wrapper`);
var $form = $("form[data-web-form='"+frappe.web_form_name+"']");
var $form = $("div[data-web-form='"+frappe.web_form_name+"']");
// :( Needed by core model, meta and perm, all now included in th website js
// One of the few non-touchy options