From: Jakub Skoczen Date: Fri, 4 Feb 2011 12:46:19 +0000 (+0100) Subject: Comment out, move autosearch after init X-Git-Url: http://git.indexdata.com/?p=mkdru-moved-to-drupal.org.git;a=commitdiff_plain;h=51ac1b6ebfdc6ea011fdcf20456fa4855558dfd2 Comment out, move autosearch after init --- 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(); + //} });