X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/1951014908ab4002a9a52931860a8a124f49655f..bc805a3f2564d28b78c8cff1ea6b8580a6231ea6:/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 feda8f5..ca5e84c 100644 --- a/sercom/subcontrollers/curso/templates/edit.kid +++ b/sercom/subcontrollers/curso/templates/edit.kid @@ -12,22 +12,22 @@ MochiKit.DOM.appendChildNodes("form_docentes_to", OPTION({"value":${d['id']}}, '${d['label']}')) - + MochiKit.DOM.appendChildNodes("form_alumnos", OPTION({"value":${a['id']}}, '${a['label']}')) - // Saco de FROM los que ya estan en TO - replaceChildNodes('form_docentes_from', list(ifilterfalse( - partial(esta_en_to, $('form_docentes_to').options), - $('form_docentes_from').options - ))); - } - function esta_en_to (options, i) { - for (j=0; j < options.length; j++) - if (options[j].value == i.value) - return true; - return false; - } + // Saco de FROM los que ya estan en TO + replaceChildNodes('form_docentes_from', list(ifilterfalse( + partial(esta_en_to, $('form_docentes_to').options), + $('form_docentes_from').options + ))); + } + function esta_en_to (options, i) { + for (j=0; j < options.length; j++) + if (options[j].value == i.value) + return true; + return false; + } MochiKit.DOM.addLoadEvent(init_data)
@@ -37,11 +37,9 @@