# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239273280 -7200 # Node ID 4cc6e2723dc72c9513421cd1cfe1558a6b615c1f # Parent 99dfced5673e606449f6a86268386dbce4f5c474 move ajax.js to base form class diff -r 99dfced5673e -r 4cc6e2723dc7 web/form.py --- a/web/form.py Thu Apr 09 11:30:13 2009 +0200 +++ b/web/form.py Thu Apr 09 12:34:40 2009 +0200 @@ -201,7 +201,7 @@ # attributes overrideable through __init__ internal_fields = ('__errorurl',) + NAV_FORM_PARAMETERS - needs_js = ('cubicweb.edition.js',) + needs_js = ('cubicweb.ajax.js', 'cubicweb.edition.js',) needs_css = ('cubicweb.form.css',) domid = 'form' title = None diff -r 99dfced5673e -r 4cc6e2723dc7 web/formwidgets.py --- a/web/formwidgets.py Thu Apr 09 11:30:13 2009 +0200 +++ b/web/formwidgets.py Thu Apr 09 12:34:40 2009 +0200 @@ -182,7 +182,7 @@ daynames = ('monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday') - needs_js = ('cubicweb.ajax.js', 'cubicweb.calendar.js') + needs_js = ('cubicweb.calendar.js',) needs_css = ('cubicweb.calendar_popup.css',) @classmethod