Browse Source

Update bootstrap-table-filter-control.js

Valery1991 8 years ago
parent
commit
fd83dfe996
1 changed files with 3 additions and 9 deletions
  1. 3 9
      src/extensions/filter-control/bootstrap-table-filter-control.js

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

@@ -93,7 +93,7 @@
 
     var getCursorPosition = function(el) {
         if ($.fn.bootstrapTable.utils.isIEBrowser()) {
-            if ($(el).is('input')) {
+            if ($(el).is('input[type=text]')) {
                 var pos = 0;
                 if ('selectionStart' in el) {
                     pos = el.selectionStart;
@@ -113,14 +113,8 @@
         }
     };
 
-    var setCursorPosition = function (el, index) {
-        if ($.fn.bootstrapTable.utils.isIEBrowser()) {
-            if(el.setSelectionRange !== undefined) {
-                el.setSelectionRange(index, index);
-            } else {
-                $(el).val(el.value);
-            }
-        }
+    var setCursorPosition = function (el) {
+        $(el).val(el.value);
     };
 
     var copyValues = function (that) {