X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/5a5fd7200d429896765a5043908441683e5f06ea..de32d0c699858b1502f5f1e793174db8b56f9c1b:/sercom/subcontrollers/curso/__init__.py diff --git a/sercom/subcontrollers/curso/__init__.py b/sercom/subcontrollers/curso/__init__.py index ae1ed7a..9d1c1f3 100644 --- a/sercom/subcontrollers/curso/__init__.py +++ b/sercom/subcontrollers/curso/__init__.py @@ -23,21 +23,7 @@ name = 'curso' namepl = name + 's' #}}} -ajax = u""" - function makeOption(option) { - return OPTION({"value": option.value}, option.text); - } - - function moveOption( fromSelect, toSelect) { - // add 'selected' nodes toSelect - appendChildNodes(toSelect, - map( makeOption,ifilter(itemgetter('selected'), $(fromSelect).options))); - // remove the 'selected' fromSelect - replaceChildNodes(fromSelect, - list(ifilterfalse(itemgetter('selected'), $(fromSelect).options)) - ); - } - +ajax = u""" function alumnos_agregar_a_la_lista(texto, lista) { t = MochiKit.DOM.getElement(texto); @@ -88,13 +74,13 @@ ajax = u""" /* Selecciono todos los miembros si no, no llegan al controllere*/ l = MochiKit.DOM.getElement('form_alumnos'); - for (i=0; i