Browse Source

Formating the code

Dennis Hernández 10 years ago
parent
commit
7c287c003c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 3 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -67,9 +67,10 @@
             selectControl.append($("<option></option>")
             selectControl.append($("<option></option>")
                 .attr("value", value)
                 .attr("value", value)
                 .text($('<div />').html(text).text()));
                 .text($('<div />').html(text).text()));
+
             // Sort it. Not overly efficient to do this here
             // Sort it. Not overly efficient to do this here
             var $opts = selectControl.find('option:gt(0)');
             var $opts = selectControl.find('option:gt(0)');
-            $opts.sort(function(a,b){
+            $opts.sort(function (a, b) {
                 a = $(a).text().toLowerCase();
                 a = $(a).text().toLowerCase();
                 b = $(b).text().toLowerCase();
                 b = $(b).text().toLowerCase();
                 if ($.isNumeric(a) && $.isNumeric(b)) {
                 if ($.isNumeric(a) && $.isNumeric(b)) {
@@ -79,6 +80,7 @@
                 }
                 }
                 return a > b ? 1 : a < b ? -1 : 0;
                 return a > b ? 1 : a < b ? -1 : 0;
             });
             });
+
             selectControl.find('option:gt(0)').remove();
             selectControl.find('option:gt(0)').remove();
             selectControl.append($opts);
             selectControl.append($opts);
         }
         }