comparison gpp/core/widgets.py @ 11:cc8eb028def1

Update jquery-ui and theme version that is hosted on google. In preparation for having jquery on every page (?), make it so that the autocomplete plug is using the 'global' jquery, and not the one that came with it. It seems to work okay with jquery 1.3.2.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Apr 2009 02:35:35 +0000
parents b6263ac72052
children f408971657b9
comparison
equal deleted inserted replaced
10:f43f8a956f1d 11:cc8eb028def1
11 class AutoCompleteUserInput(forms.TextInput): 11 class AutoCompleteUserInput(forms.TextInput):
12 class Media: 12 class Media:
13 css = { 13 css = {
14 'all': settings.GPP_THIRD_PARTY_CSS['jquery-autocomplete'], 14 'all': settings.GPP_THIRD_PARTY_CSS['jquery-autocomplete'],
15 } 15 }
16 js = settings.GPP_THIRD_PARTY_JS['jquery-autocomplete'] 16 js = settings.GPP_THIRD_PARTY_JS['jquery'] + \
17 settings.GPP_THIRD_PARTY_JS['jquery-autocomplete']
17 18
18 def render(self, name, value, attrs=None): 19 def render(self, name, value, attrs=None):
19 url = reverse('messages-ajax_users') 20 url = reverse('messages-ajax_users')
20 output = super(AutoCompleteUserInput, self).render(name, value, attrs) 21 output = super(AutoCompleteUserInput, self).render(name, value, attrs)
21 return output + mark_safe(u'''\ 22 return output + mark_safe(u'''\