Browse Source

Format the code.

zhixin 11 years ago
parent
commit
07612a913b
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/bootstrap-table.js

+ 7 - 7
src/bootstrap-table.js

@@ -173,7 +173,7 @@
         formatter: undefined,
         events: undefined,
         sorter: undefined,
-		clickToSelect: true
+        clickToSelect: true
     };
 
     BootstrapTable.EVENTS = {
@@ -277,7 +277,7 @@
             formatters: [],
             events: [],
             sorters: [],
-			clickToSelects: []
+            clickToSelects: []
         };
         $.each(this.options.columns, function (i, column) {
             var text = '',
@@ -836,13 +836,13 @@
 
         this.$container.find('.fixed-table-body').scrollTop(0);
 
-		// click to select by column
+        // click to select by column
         this.$body.find('> tr > td').off('click').on('click', function () {
-			// if click to select - then trigger the checkbox/radio click
+            // if click to select - then trigger the checkbox/radio click
             if (that.options.clickToSelect) {
-				if (that.header.clickToSelects[$(this).parent().children().index($(this))]){
-	                $(this).parent().find(sprintf('[name="%s"]', that.options.selectItemName)).trigger('click');
-				}
+                if (that.header.clickToSelects[$(this).parent().children().index($(this))]){
+                    $(this).parent().find(sprintf('[name="%s"]', that.options.selectItemName)).trigger('click');
+                }
             }
         });
         this.$body.find('tr').off('dblclick').on('dblclick', function () {