1

Show customized label when making modifications

This commit is contained in:
Alex Yatskov 2014-11-09 11:40:13 +09:00
parent 1b671e288f
commit 11d25531a4
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@
$.getJSON('/search', _ctx.query, function(results) { $.getJSON('/search', _ctx.query, function(results) {
saveSnapshot(results); saveSnapshot(results);
outputSnapshot(results); outputSnapshot(results);
$('#customized').show();
}); });
} }
@ -133,12 +134,14 @@
$.getJSON('/search', _ctx.query, function(results) { $.getJSON('/search', _ctx.query, function(results) {
saveSnapshot(results); saveSnapshot(results);
outputSnapshot(results); outputSnapshot(results);
$('#customized').hide();
}); });
} }
function onSelectSnapshot() { function onSelectSnapshot() {
var index = $('#historyIndex').slider('getValue'); var index = $('#historyIndex').slider('getValue');
outputSnapshot(_ctx.log[index]); outputSnapshot(_ctx.log[index]);
$('#customized').show();
} }
function saveSnapshot(results) { function saveSnapshot(results) {

View File

@ -89,7 +89,7 @@
var _panelSize = 20; var _panelSize = 20;
var _tickSize = 5; var _tickSize = 5;
var _width = 125; var _width = 125;
var _easeTime = 250; var _easeTime = 200;
var _enabled = true; var _enabled = true;
var _canvas = params.canvas; var _canvas = params.canvas;