web/formwidgets.py
changeset 6448 8590d82e9b1b
parent 6260 e06750b556ad
child 6449 613d83588998
equal deleted inserted replaced
6447:f5d1b1025702 6448:8590d82e9b1b
   696     """<input type='text'> based ajax widget, taking a `autocomplete_initfunc`
   696     """<input type='text'> based ajax widget, taking a `autocomplete_initfunc`
   697     argument which should specify the name of a method of the json
   697     argument which should specify the name of a method of the json
   698     controller. This method is expected to return allowed values for the input,
   698     controller. This method is expected to return allowed values for the input,
   699     that the widget will use to propose matching values as you type.
   699     that the widget will use to propose matching values as you type.
   700     """
   700     """
   701     needs_js = ('cubicweb.widgets.js', 'jquery.autocomplete.js')
   701     needs_js = ('cubicweb.widgets.js', 'jquery.ui.js')
   702     needs_css = ('jquery.autocomplete.css',)
   702     needs_css = ('jquery.ui.css',)
   703     wdgtype = 'SuggestField'
   703     wdgtype = 'SuggestField'
   704     loadtype = 'auto'
   704     loadtype = 'auto'
   705 
   705 
   706     def __init__(self, *args, **kwargs):
   706     def __init__(self, *args, **kwargs):
   707         try:
   707         try: