Comment out, move autosearch after init
[mkdru-moved-to-drupal.org.git] / mkdru.client.js
index 7357102..b0d8b7f 100644 (file)
@@ -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();
+  //}
 });