@cryptotaxi247 / netdata-1 / commits / eb9d4c641

disabled animation for shorten plugin

Costa Tsaousis committed May 31, 2016 at 04:05 UTC eb9d4c641c7ea7904bd079573ab1d0e71233a5a3
1 file changed +4 -4
web/index.html
+4 -4
@@ -2267,8 +2267,8 @@ function finalizePage() {
2267 showChars: 750,
2268 minHideChars: 10,
2269 ellipsesText: "...",
2270 - moreText: "show more information",
2271 - lessText: "show less information",
2270 + moreText: '<i class="fa fa-expand" aria-hidden="true"></i> show more information',
2271 + lessText: '<i class="fa fa-compress" aria-hidden="true"></i> show less information',
2272 onLess: function() { NETDATA.onscroll(); },
2273 onMore: function() { NETDATA.onscroll(); },
2274 errMsg: null,
@@ -2293,14 +2293,14 @@ function finalizePage() {
2293 if ($this.hasClass('less')) {
2294 $this.removeClass('less');
2295 $this.html(config.moreText);
2296 - $this.parent().prev().animate({'height':'0'+'%'}, 50, function () { $this.parent().prev().prev().show(); }).hide('fast', function() {
2296 + $this.parent().prev().animate({'height':'0'+'%'}, 0, function () { $this.parent().prev().prev().show(); }).hide(0, function() {
2297 config.onLess();
2298 });
2299
2300 } else {
2301 $this.addClass('less');
2302 $this.html(config.lessText);
2303 - $this.parent().prev().animate({'height':'100'+'%'}, 50, function () { $this.parent().prev().prev().hide(); }).show('fast', function() {
2303 + $this.parent().prev().animate({'height':'100'+'%'}, 0, function () { $this.parent().prev().prev().hide(); }).show(0, function() {
2304 config.onMore();
2305 });
2306 }