Roo/grid/RowSelectionModel.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:55:29 +0000 (17:55 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:55:29 +0000 (17:55 +0800)
Roo/grid/RowSelectionModel.js

index 87a678f..d316825 100644 (file)
@@ -250,7 +250,9 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel,  {
      * Selects all rows.
      */
     selectAll : function(){
-        if(this.locked) return;
+        if(this.locked) {
+            return;
+        }
         this.selections.clear();
         for(var i = 0, len = this.grid.dataSource.getCount(); i < len; i++){
             this.selectRow(i, true);