1
0
فهرست منبع

фикс обновления

kpmy 7 سال پیش
والد
کامیت
75edd6f434
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/root.js

+ 4 - 2
src/root.js

@@ -6,7 +6,7 @@ let string_similarity = require('string-similarity');
 
 require('../thirdparty/naturalSort');
 
-require('angular').module('Ks').controller('RootController', function ($scope, $mdPanel) {
+require('angular').module('Ks').controller('RootController', function ($scope, $mdPanel, $timeout) {
     $scope._ = _;
 
     let tabCats = {
@@ -26,7 +26,9 @@ require('angular').module('Ks').controller('RootController', function ($scope, $
     };
 
     $scope.$watch('data', function () {
-        setTimeout(getPage, 100);
+        $timeout(function () {
+            getPage()
+        }, 200);
     }, true);
 
     let getFilter = function () {