incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [42/50] [abbrv] git commit: animate slow queries warning to remove page jumping
Date Sat, 31 May 2014 14:22:15 GMT
animate slow queries warning to remove page jumping

Signed-off-by: Chris Rohr <rohr.chris@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e6c2eb25
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e6c2eb25
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e6c2eb25

Branch: refs/heads/apache-blur-0.2
Commit: e6c2eb257066050749aa997591a61927a29bdaaf
Parents: 5bf4063
Author: Andrew Avenoso <andrew.va@gmail.com>
Authored: Thu May 29 14:08:22 2014 -0400
Committer: Chris Rohr <rohr.chris@gmail.com>
Committed: Thu May 29 15:57:57 2014 -0400

----------------------------------------------------------------------
 contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js | 4 ++--
 contrib/blur-console/src/main/webapp/js/blurconsole.fake.js      | 2 +-
 contrib/blur-console/src/main/webapp/views/dashboard.tpl.html    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e6c2eb25/contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js b/contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js
index 15a2b8f..68cf79c 100644
--- a/contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js
+++ b/contrib/blur-console/src/main/webapp/js/blurconsole.dashboard.js
@@ -216,9 +216,9 @@ blurconsole.dashboard = (function () {
 
 	checkForSlowQueries = function() {
 		if (blurconsole.model.metrics.getSlowQueryWarnings()) {
-			$('#slow-query-warnings').removeClass('hidden');
+			$('#slow-query-warnings').slideDown();
 		} else {
-			$('#slow-query-warnings').addClass('hidden');
+			$('#slow-query-warnings').slideUp();
 		}
 	};
 

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e6c2eb25/contrib/blur-console/src/main/webapp/js/blurconsole.fake.js
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/main/webapp/js/blurconsole.fake.js b/contrib/blur-console/src/main/webapp/js/blurconsole.fake.js
index 84fb382..028e4d7 100644
--- a/contrib/blur-console/src/main/webapp/js/blurconsole.fake.js
+++ b/contrib/blur-console/src/main/webapp/js/blurconsole.fake.js
@@ -95,7 +95,7 @@ blurconsole.fake = (function() {
 
 		setTimeout(function(){
 			callback({
-				slowQueries : randomNumber(100) % 10 === 0,
+				slowQueries : randomNumber(10) === 1,
 				queries : queries
 			});
 		}, randomNumber(1000));

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e6c2eb25/contrib/blur-console/src/main/webapp/views/dashboard.tpl.html
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/main/webapp/views/dashboard.tpl.html b/contrib/blur-console/src/main/webapp/views/dashboard.tpl.html
index 43e2cfa..1f6fad7 100644
--- a/contrib/blur-console/src/main/webapp/views/dashboard.tpl.html
+++ b/contrib/blur-console/src/main/webapp/views/dashboard.tpl.html
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
 under the License.
  -->
 
-<div id="slow-query-warnings" class="alert alert-danger hidden">
+<div id="slow-query-warnings" class="alert alert-danger" style="display:none;">
 	<strong>Heads Up!</strong>
 	Queries have been running for longer than a minute.
 </div>


Mime
View raw message