Skip to content

Commit

Permalink
Merge 89bc10d into c51be28
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed May 3, 2019
2 parents c51be28 + 89bc10d commit 6778c04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/collective/z3cform/datagridfield/datagridfield.py
Expand Up @@ -331,7 +331,7 @@ def render(self):
html = ''
for tree in fragments:
for el in tree.xpath(PAT_XPATH):
if '.TT.' in el.attrib['name']:
if '.TT.' in el.attrib.get('name', ''):
el.attrib['class'] = el.attrib['class'].replace(
'pat-',
'dgw-disabled-pat-'
Expand Down
4 changes: 2 additions & 2 deletions src/collective/z3cform/datagridfield/static/datagridfield.js
Expand Up @@ -596,8 +596,8 @@ require([
$(document).trigger("afterdatagridfieldinit");
};


$(document).ready(dataGridField2Functions.init);
// call init in init_field.js
// $(document).ready(dataGridField2Functions.init);

// Export module for customizers to mess around
window.dataGridField2Functions = dataGridField2Functions;
Expand Down

0 comments on commit 6778c04

Please sign in to comment.