X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/5a5fd7200d429896765a5043908441683e5f06ea..281158557f773841462958aec40688efca0d5b12:/sercom/subcontrollers/curso/templates/edit.kid?ds=sidebyside diff --git a/sercom/subcontrollers/curso/templates/edit.kid b/sercom/subcontrollers/curso/templates/edit.kid index e4e6811..6939753 100644 --- a/sercom/subcontrollers/curso/templates/edit.kid +++ b/sercom/subcontrollers/curso/templates/edit.kid @@ -18,6 +18,28 @@ } MochiKit.DOM.addLoadEvent(init_data) + + 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))); + } + + function mover( src, dest ) { + moveOption(src, dest) + } + + function remover (src, dest) { + replaceChildNodes(src,list(ifilterfalse(itemgetter('selected'), $(src).options))) + } + @@ -25,7 +47,8 @@
Formulario
-Agregar Alumnos +
+Agregar Alumnos desde archivo

Ver (cancela) |