From: Ricardo Markiewicz Date: Mon, 5 Mar 2007 02:57:53 +0000 (+0000) Subject: fix de eliminar elementos X-Git-Tag: 0_9~128 X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/commitdiff_plain/68e9d1b139c54e69d0afcbfb53df4b42ced27348?ds=inline fix de eliminar elementos --- diff --git a/sercom/widgets.py b/sercom/widgets.py index f333523..070fb76 100644 --- a/sercom/widgets.py +++ b/sercom/widgets.py @@ -42,17 +42,9 @@ MultiSelectAjax = ''' function sacar_de_la_lista(lista) { - l = MochiKit.DOM.getElement(lista); - if (l.selectedIndex < 0) return; - - /* caso especial, 1 solo item */ - if (l.options.length == 1) { - l.options.length = 0 - return; - } - - for (i=l.selectedIndex; i