Commit 527095a4 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Migrate from JonController to AjaxController

parent 7c0156c190cd
"""template-specific forms/views/actions/components"""
from logilab.common.decorators import monkeypatch
from cubicweb.web import formwidgets as fw
from cubicweb.web.views import uicfg, basecontrollers
from cubicweb.web.views import uicfg
from cubicweb.web.views.ajaxcontroller import ajaxfunc
_afs = uicfg.autoform_section
_affk = uicfg.autoform_field_kwargs
......@@ -14,8 +13,7 @@ _affk.tag_subject_of(('Expense', 'spent_for', '*'),
autocomplete_settings={'limit': 100, 'delay': 300})})
def js_get_concerned_by(self):
term = self._cw.form['q']
limit = self._cw.form.get('limit', 50)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment