LSformElement_select : Fixed clear button action in recent browser.
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 16 May 2012 13:18:40 +0000 (15:18 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 16 May 2012 13:18:40 +0000 (15:18 +0200)
public_html/includes/js/LSformElement_select.js

index b2fb9e6..729c3fe 100644 (file)
@@ -24,6 +24,9 @@ var LSformElement_select = new Class({
     },
     
     resetSelect: function(select) {
+      if ($type(select)!='select') {
+        select=select.getParent('select');
+      }
       select.selectedIndex=-1;
     }
 });