Fix in selector onchange extension
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 19 Jun 2008 15:25:14 +0000 (15:25 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 19 Jun 2008 15:25:14 +0000 (15:25 +0000)
js/inserts.js

index 33bff885f6bd22d0f6ed166aa2e68ca4f166ecc3..d85a9062eacdb8265ac5c5811c2042a0a1e96812 100644 (file)
@@ -111,7 +111,7 @@ function _set_combo_select(e) {
                }
                e.onchange = function() {
                        var s = this;
-                       
+                       this.setAttribute('_last', this.selectedIndex);                 
                        if(s.className=='combo')
                            _update_box(s);
                        if(s.selectedIndex>=0) {