From 9b8827ac0b60d52f491fdb5514023dad8153d00d Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 18 Jun 2013 16:37:30 +0100 Subject: [PATCH] Fill in #switchmenu using JQuery calls instead of HTML text. --- experiments/spclient/mkws.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 65e6219..b23e043 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -377,9 +377,13 @@ $(document).ready(function() { var jqxhr = jQuery.get("/service-proxy-auth") .fail(function() { alert("service proxy authentifiction failed"); }); - // Less code needs to be included in the HTML client - $('#switchmenu').html('\ - Record Browser\ - | \ - Target Info'); + $("#switchmenu").html($("", { href: '#', + onclick: "switchView(\'recordview\')", + text: "Record Browser", + })); + $("#switchmenu").append($("", { text: " | " })); + $("#switchmenu").append($("", { href: '#', + onclick: "switchView(\'targetview\')", + text: "Target Info", + })); }); -- 1.7.10.4