ソースを参照

Update toggle icon and add bootstrap 2 for support.

zhixin 11 年 前
コミット
35ae648dee
2 ファイル変更12 行追加2 行削除
  1. 10 0
      src/bootstrap-table.css
  2. 2 2
      src/bootstrap-table.js

+ 10 - 0
src/bootstrap-table.css

@@ -179,6 +179,16 @@
     overflow: auto;
 }
 
+.btn-group, .btn-group {
+    display: inline-block;
+    margin-left: -1px;
+}
+
+.btn-group>.btn-group:last-child>.btn:first-child {
+    border-top-left-radius: 0;
+    border-bottom-left-radius: 0;
+}
+
 /* support bootstrap 3 */
 .table thead>tr>th {
     padding: 0;

+ 2 - 2
src/bootstrap-table.js

@@ -414,13 +414,13 @@
 
         if (this.options.showRefresh) {
             html.push('<button class="btn btn-default" type="button" name="refresh">',
-                '<i class="glyphicon glyphicon-refresh"></i>',
+                '<i class="glyphicon glyphicon-refresh icon-refresh"></i>',
                 '</button>');
         }
 
         if (this.options.showToggle) {
             html.push('<button class="btn btn-default" type="button" name="toggle">',
-                '<i class="glyphicon glyphicon-transfer"></i>',
+                '<i class="glyphicon glyphicon glyphicon-list-alt icon-list-alt"></i>',
                 '</button>');
         }