X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/db587d0d4ce6518b3c4f8cf18989fc1f65b40c5e..86cda0b5747c356334877720dccb99fc9100f615:/sercom/widgets.py
diff --git a/sercom/widgets.py b/sercom/widgets.py
index 08adea7..309adc0 100644
--- a/sercom/widgets.py
+++ b/sercom/widgets.py
@@ -17,4 +17,60 @@ class CustomTextField(widgets.TextField):
/>
+'''
+
+AlumnoMultiSelectAjax = '''
+ function agregar_a_la_lista(texto, lista)
+ {
+ t = MochiKit.DOM.getElement(texto);
+ MochiKit.DOM.appendChildNodes(lista, OPTION(t.value));
+ t.value = "";
+ }
+
+ function sacar_de_la_lista(lista)
+ {
+ l = MochiKit.DOM.getElement(lista);
+ if (l.selectedIndex < 0) return;
+
+ for (i=l.selectedIndex; i
+
+
+ |
+
+
+ |
+
+
+ |
+
'''
+ javascript = [widgets.JSSource(AlumnoMultiSelectAjax)]
+