X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.client.js;h=b0d8b7f98895c817789163bb8eaecad779e9192e;hb=51ac1b6ebfdc6ea011fdcf20456fa4855558dfd2;hp=73571020f11880bf61c795c153d85404b9d006db;hpb=89996d58c6ef47fdba1944a4d4c6fde026f07d63;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.client.js b/mkdru.client.js index 7357102..b0d8b7f 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -361,12 +361,14 @@ $(document).ready(function () { ); } - //I'm not sure how this can work, it assumes the search is in a proper state? - if (mkdru.state.recid) { - mkdru.pz2.record(mkdru.state.recid); - } - //mkdru.onInit deals with this in a more proper way - else if (mkdru.state.query) { - mkdru.search(); - } + //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(); + //} });