From 5ab0b530ae6f09b808845c072f1b996d4539dabc Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 18 Nov 2022 00:26:56 +0100 Subject: [PATCH] history.js: remove dead code --- website/agenda/planung/js/history.js | 29 +--------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/website/agenda/planung/js/history.js b/website/agenda/planung/js/history.js index 4dac1c0..41f0ee3 100644 --- a/website/agenda/planung/js/history.js +++ b/website/agenda/planung/js/history.js @@ -32,20 +32,6 @@ function comeFromCalendar(){ //return history or null, if url should not be appended to history function isNewToHistory(url){ - //if (window.location.search=='')return null; - - /* - if (contains(url,"action")){ - //action defined but not show...,edit... - if ( - (!contains(url,"action=show")) - && (!contains(url,"action=edit")) - ){ - //alert("return"); - //return null; - } - } - */ var params=window.location.search; var history = getHistory(); @@ -58,21 +44,8 @@ function isNewToHistory(url){ var historyController=history[0].split('.cgi').shift(); //remove last entry on same controller if(urlController==historyController){ - console.log("same controller\n"+url+"\n"+history[0]) - //var ignore=0; - //provide back to series from series details - //if(contains(url,'series')){ - //console.log(url); - //console.log(history[0]); - //if( (contains(url,'series_id')==true) && (contains(history[0],'series_id')==false)) ignore=1; - //console.log(ignore); - //} - //if (ignore==0) - //history.shift(); - return null; + return null; } - - return history; }