]> git.llucax.com Git - z.facultad/75.52/sercom.git/blobdiff - sercom/subcontrollers/curso/templates/edit.kid
Agrego MisCorrecciones
[z.facultad/75.52/sercom.git] / sercom / subcontrollers / curso / templates / edit.kid
index 7cbef82078163642d8b8f83edb9863b1375dd76e..feda8f50789bc654a46efcca17aa64454b0ab9fa 100644 (file)
         <span py:for="a in record.alumnos_inscriptos" py:strip="True">
             MochiKit.DOM.appendChildNodes("form_alumnos", OPTION({"value":${a['id']}}, '${a['label']}'))
         </span>
-    }
+                               // 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 &lt; options.length; j++)
+                               if (options[j].value == i.value)
+                                       return true;
+                       return false;
+               }
     MochiKit.DOM.addLoadEvent(init_data)
 </script>
 <body>