From 51ac1b6ebfdc6ea011fdcf20456fa4855558dfd2 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Fri, 4 Feb 2011 13:46:19 +0100 Subject: [PATCH] Comment out, move autosearch after init --- mkdru.client.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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(); + //} }); -- 1.7.10.4