X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/4d05c0593fa8b0627b6cca3e3367d5a15d92d1fa..093cc6f1322e48e79088a864addd7fff4c34c252:/sercom/widgets.py?ds=inline diff --git a/sercom/widgets.py b/sercom/widgets.py index f333523..b9a14c1 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 + + + + + + + + + + + +
${title_from} ${title_to}
+ + + +
+
+ +
+ +
+ + ''' + javascript = [widgets.JSSource(DosListasAjax)] + title_from = "" + title_to = "" + + def __init__(self, **kw): + self.params.append('title_from') + self.params.append('title_to') + self.title_from = " " + self.title_to = " " + widgets.MultipleSelectField.__init__(self, **kw) +