From: Wolfram Schneider Date: Thu, 29 Aug 2013 16:36:02 +0000 (+0200) Subject: use href="javascript:mkws.switchView('records')" instead onclick event, MKWS-39 X-Git-Tag: 0.9.1~202^2~28 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=da7420950ffa3423bdde4fd41343beca5fc63b47;p=mkws-moved-to-github.git use href="javascript:mkws.switchView('records')" instead onclick event, MKWS-39 --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 95e67d4..fc4528f 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -445,7 +445,7 @@ function pagerPrev() { mkws.switchView = function(view) { debug("switchView: " + view); - + var targets = document.getElementById('mkwsTargets'); var results = document.getElementById('mkwsResults') || document.getElementById('mkwsRecords'); @@ -692,14 +692,12 @@ function mkws_html_switch(config) { debug("HTML switch"); $("#mkwsSwitch").html($("", { - href: '#', - onclick: "mkws.switchView(\'records\')", + href: "javascript:mkws.switchView('records')", text: M("Records") })); $("#mkwsSwitch").append($("", { text: " | " })); $("#mkwsSwitch").append($("", { - href: '#', - onclick: "mkws.switchView(\'targets\')", + href: "javascript:mkws.switchView('targets')", text: M("Targets") }));