From 1e1330847fc4ea9e81bcc60973d42a4c829995c2 Mon Sep 17 00:00:00 2001 From: mlorb Date: Mon, 11 Jun 2018 14:49:03 +0200 Subject: [PATCH] remove unused code --- app/assets/javascripts/reports/new.js.erb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/assets/javascripts/reports/new.js.erb b/app/assets/javascripts/reports/new.js.erb index e456c9474..cc2a7aa40 100644 --- a/app/assets/javascripts/reports/new.js.erb +++ b/app/assets/javascripts/reports/new.js.erb @@ -32,10 +32,6 @@ var ignoreUnsavedWorkAlert; initializeAddContentsModal(); initializeUnsavedWorkDialog(); - $('.report-nav-link').each(function() { - truncateLongString($(this), <%= Constants::NAME_TRUNCATION_LENGTH %>); - }); - // Automatically display the "Add content" modal $('.new-element.initial').click(); } @@ -955,11 +951,3 @@ $(document).ready(function() { init(); } }) - -$(document).change(function(){ - setTimeout(function(){ - $(".report-nav-link").each( function(){ - truncateLongString( $(this), <%= Constants::NAME_TRUNCATION_LENGTH %>); - }); - }, 1000); -});