From: Jason Skomorowski Date: Wed, 9 Feb 2011 18:37:48 +0000 (+0100) Subject: Comment tidying. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c7b7886b595ca873c5d1c715c21d862114793c72;p=mkdru-moved-to-drupal.org.git Comment tidying. --- diff --git a/mkdru.client.js b/mkdru.client.js index dae3fa7..216ad20 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -326,6 +326,7 @@ $(document).ready(function () { if (typeof(Drupal.settings.mkdru.query) !== "undefined") { mkdru.state.query = Drupal.settings.mkdru.query } + //not running against SP? init, otherwise authenticate if (mkdru.useSessions) { mkdru.pz2.init(); @@ -349,7 +350,7 @@ $(document).ready(function () { ); authReq.get(params, function (data) { - var s = data.getElementsByTagName('status'); + var s = data.getElementsByTagName('status'); if (s.length && Element_getTextContent(s[0]) == "OK") { mkdru.realm = data.getElementsByTagName('realm'); mkdru.pz2Init(); @@ -360,15 +361,4 @@ $(document).ready(function () { } ); } - - //i'm not sure how this can work, does it assume the results set is active? - //what if no search has been executed? - //if (mkdru.state.recid) { - // mkdru.pz2.record(mkdru.state.recid); - //} - //'mkdru.onInit/ deals with the following properly - /// -- waiting for Pz2/SP to init first - //else if (mkdru.state.query) { - // mkdru.search(); - //} });