Switch to records view when a search is submitted.
authorMike Taylor <mike@indexdata.com>
Thu, 27 Jun 2013 11:34:28 +0000 (13:34 +0200)
committerMike Taylor <mike@indexdata.com>
Thu, 27 Jun 2013 11:34:28 +0000 (13:34 +0200)
experiments/spclient/mkws.js

index 43c4bac..5db9f7e 100644 (file)
@@ -234,6 +234,7 @@ function onFormSubmitEventHandler()
     resetPage();
     loadSelect();
     triggerSearch();
+    switchView('records'); // In case it's configured to start off as hidden
     submitted = true;
     return false;
 }