From 11d25531a47e505e58eca7cfa140d25728c57efe Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 9 Nov 2014 11:40:13 +0900 Subject: [PATCH] Show customized label when making modifications --- client/scripts/application.js | 3 +++ client/scripts/grapher.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/scripts/application.js b/client/scripts/application.js index 135cc80..0395024 100644 --- a/client/scripts/application.js +++ b/client/scripts/application.js @@ -35,6 +35,7 @@ $.getJSON('/search', _ctx.query, function(results) { saveSnapshot(results); outputSnapshot(results); + $('#customized').show(); }); } @@ -133,12 +134,14 @@ $.getJSON('/search', _ctx.query, function(results) { saveSnapshot(results); outputSnapshot(results); + $('#customized').hide(); }); } function onSelectSnapshot() { var index = $('#historyIndex').slider('getValue'); outputSnapshot(_ctx.log[index]); + $('#customized').show(); } function saveSnapshot(results) { diff --git a/client/scripts/grapher.js b/client/scripts/grapher.js index 4d9f24d..16293bd 100644 --- a/client/scripts/grapher.js +++ b/client/scripts/grapher.js @@ -89,7 +89,7 @@ var _panelSize = 20; var _tickSize = 5; var _width = 125; - var _easeTime = 250; + var _easeTime = 200; var _enabled = true; var _canvas = params.canvas;