not submitting when no search is done
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Mar 2006 19:17:45 +0000 (19:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Mar 2006 19:17:45 +0000 (19:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3381 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/advanced.js

index 3bcc767..fef6601 100644 (file)
@@ -77,6 +77,8 @@ function advWizardRun() {
                arg[PARAM_RTYPE]        = type;
        }
 
+       if(!arg[PARAM_TERM]) return;
+
        goTo(buildOPACLink(arg));
 }
 
@@ -118,6 +120,8 @@ function advRefinedRun() {
        if(subject) { blob.subject = {}; blob.subject.term = subject;}
        if(series) { blob.series = {}; blob.series.term = series; }
 
+       if( !(title || author|| subject|| series) ) return;
+
        var arg                                 = {};
        arg.page                                        = MRESULT;
        arg[PARAM_FORM]         = form;