Revision 20367931
Réorganisation du code (controllers, etc)
Mise en place d'un système de plugin pour ajouter des colonnes à la volée
Internationalisation complète
Création de quelques tests
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@274 b22e2e97-25c9-44ff-b637-2e5ceca36478
README_jquery/ui_dialog.py | ||
---|---|---|
22 | 22 |
from tw.forms import FormField |
23 | 23 |
from ui_core import jquery_ui_core_js |
24 | 24 |
from ui import ui_dialog_js , ui_draggable_js, ui_resizable_js |
25 |
__all__ = ["jquery_ui_dialog_js"] |
|
26 |
|
|
27 |
|
|
28 |
# declare your static resources here |
|
29 | 25 |
|
30 |
## JS dependencies can be listed at 'javascript' so they'll get included |
|
31 |
## before |
|
26 |
__all__ = ["jquery_ui_dialog_js"] |
|
32 | 27 |
|
33 | 28 |
jquery_ui_dialog_css = CSSLink(modname=__name__, filename='static/css/ui.all.css') |
34 |
#jquery_ui_dialog_js = JSLink(modname=__name__, filename='static/javascript/ui/ui.dialog.js', javascript=[jquery_ui_core_js,jquery_direction_js]) |
|
35 |
|
|
36 |
#jquery_ui_draggable_js = JSLink(modname=__name__, filename='static/javascript/ui/ui.draggable.js') |
|
37 |
|
|
38 | 29 |
|
39 | 30 |
jQuery = js_function('jQuery') |
40 | 31 |
|
... | ... | |
90 | 81 |
stack = self.stack, |
91 | 82 |
title = self.title, |
92 | 83 |
width = self.width, |
93 |
zindex = self.zindex#, |
|
94 |
#open = js_callback('function(event,ui) { for ( i in event ) { alert(i);}}') # $(\'#%s\').dialog(\'option\' , \'position\' , \'top\')}' % d.id ) |
|
84 |
zindex = self.zindex |
|
95 | 85 |
|
96 | 86 |
) |
97 | 87 |
self.add_call(jQuery("#%s" % d.id).dialog(dialog_params)) |
98 |
|
|
99 |
|
Also available in: Unified diff