Skip to content

Commit

Permalink
cssclass fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Dec 13, 2024
1 parent 268cc8f commit a5f1fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cone/app/browser/referencebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def reference_extractor(widget, data):
return data.request['{}.uid'.format(widget.dottedpath)]


def wrap_ajax_target(rendered, widget, data, cssclass):
def wrap_ajax_target(rendered, widget, data, cssclass=None):
target = widget.attrs['target']
if not target:
request = data.request.request
Expand Down Expand Up @@ -327,7 +327,7 @@ def wrap_ajax_target(rendered, widget, data, cssclass):
target = '{}{}'.format(target, query)
attrs = {
'ajax:target': target,
'class_': cssclass
'class_': cssclass if cssclass else ''
}
return tag('span', rendered, **attrs)

Expand Down

0 comments on commit a5f1fed

Please sign in to comment.