examples/grid/edit-grid.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 10:12:18 +0000 (18:12 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 18 Nov 2012 10:12:18 +0000 (18:12 +0800)
examples/grid/edit-grid.js

index 12a4364..bc85616 100644 (file)
@@ -194,13 +194,18 @@ Roo.onReady(function(){
                         if (this.activeDom = dom) {
                             return;
                         }
+                        if (this.activeDom) {
+                            this.activeDom.style.borderTop = '';
+                            this.activeDom.style.borderBottom = '';
+                            this.activeDom.style.display = '';
+                        }
                         
                         if (ri == false) {
                             return;
                         }
                         dom.style[ pos == 'above' ? 'borderTop' : 'borderBottom'] ='20px solid #FCFCFC;';
                         dom.style.display =  'block';
-                           
+                        this.activeDom = false;
                     
                     
                   }