move ajax.js to base form class tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 09 Apr 2009 12:34:40 +0200
branchtls-sprint
changeset 1311 4cc6e2723dc7
parent 1310 99dfced5673e
child 1312 df7f847e1388
move ajax.js to base form class
web/form.py
web/formwidgets.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
--- 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