From be4a4ca6f026e43db9f730435e9e37fae89e3386 Mon Sep 17 00:00:00 2001 From: ProgressoRU Date: Thu, 18 Jun 2015 18:36:37 +0300 Subject: [PATCH] Refresh timeout --- controller_v_second.js | 3 ++- search.html | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/controller_v_second.js b/controller_v_second.js index f5b7ee5..bace7e1 100644 --- a/controller_v_second.js +++ b/controller_v_second.js @@ -9,6 +9,7 @@ applicationKPP.controller('controllerVSecond', function ($http, $timeout, $inter vm.accountsSearch = [10098050, 133090071, 68758347]; vm.is_start = false; vm.lastRoomId = 45620; + vm.refreshTimeout = 10000; vm.foundedRooms = []; vm.start = function () { @@ -84,7 +85,7 @@ applicationKPP.controller('controllerVSecond', function ($http, $timeout, $inter if (vm.autoRefresh && vm.is_start) { vm.startRefreshing(roomId); } - }, 10000); + }, vm.refreshTimeout); } } } diff --git a/search.html b/search.html index e20067d..c6e1796 100644 --- a/search.html +++ b/search.html @@ -54,10 +54,10 @@

Search new Room


- Last room ID: Autorefresh: -
- Autoupdate while players < + Last room ID:
+ Autoupdate while players <
+ Autorefresh: Refresh timeout (ms):

@@ -70,7 +70,7 @@

Search new Room

{{room.id}} - {{room.players}} + {{room.players}}