X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=38b850765fb9eb04327f1f3395cb44c8b70c3b16;hb=a3e4a88ed0be613c6e9e06f50d24058f460bfe76;hp=b986988fa989468a9401d8ccf0b8c4c555e1f22c;hpb=571327a861c81095b2dfaba948d492a573b06377;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index b986988..38b8507 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -333,7 +333,7 @@ function team($, teamName) { // switching view between targets and records function switchView(view) { var targets = widgetNode('Targets'); - var results = findnode('.mkwsResults,.mkwsRecords'); + var results = widgetNode('Results') || widgetNode('Records'); var blanket = widgetNode('Blanket'); var motd = widgetNode('MOTD'); @@ -452,13 +452,13 @@ function team($, teamName) { mkwsHtmlSwitch(); findnode('.mkwsSearchForm').submit(function() { - var val = findnode('.mkwsQuery').val(); + var val = widgetNode('Query').val(); newSearch(val); return false; }); // on first page, hide the termlist - $(document).ready(function() { findnode(".mkwsTermlists").hide(); }); + $(document).ready(function() { widgetNode("Termlists").hide(); }); var container = findnode(".mkwsMOTDContainer"); if (container.length) { // Move the MOTD from the provided element down into the container