From 1cb3861cfe07ba38ced9f998d3dc3c3337673a69 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Fri, 24 Jul 2015 12:18:19 +0100 Subject: [PATCH] JAL-857 disabled javascript page state storage in cookies --- examples/javascript/jvcontroller.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/javascript/jvcontroller.js b/examples/javascript/jvcontroller.js index fa33023..ca4678a 100644 --- a/examples/javascript/jvcontroller.js +++ b/examples/javascript/jvcontroller.js @@ -17,12 +17,13 @@ * The Jalview Authors are detailed in the 'AUTHORS' file. */ - - var currentPage = (readCookie("current_page")) ? readCookie("current_page") : "applets"; + + //var currentPage = (readCookie("current_page")) ? readCookie("current_page") : "applets"; + var currentPage = "applets"; var signedJars = "jalviewApplet.jar,JmolApplet-12.2.4.jar,java-json.jar,json_simple-1.1.jar"; var unsignedJars = "u_jalviewApplet.jar,u_JmolApplet-12.2.4.jar,u_java-json.jar,u_json_simple-1.1.jar"; setOrUpdateCookie('jv_applet_mode', 'false', '1'); - var isSignedAppletMode = readCookie("jv_applet_mode"); + //var isSignedAppletMode = readCookie("jv_applet_mode"); var appletJars = (isSignedAppletMode === 'true') ? signedJars : unsignedJars; //alert(unsigned); @@ -70,7 +71,6 @@ } $(function(){ - //var currentPage = (readCookie("current_page")) ? readCookie("current_page") : "applets.html"; //alert("cur page : " + currentPage); $('#header').load("includes/header_jv.html"); $('#content').load(currentPage+".html"); @@ -104,7 +104,7 @@ }); function doSubmit(target){ - setOrUpdateCookie('current_page', target, '1'); + //setOrUpdateCookie('current_page', target, '1'); //alert('current page : ' + readCookie("current_page")); var currentPage = target+'.html'; $('#content').load(currentPage); -- 1.7.10.2