Ignore:
Timestamp:
2011-01-20T15:03:59+13:00 (13 years ago)
Author:
ak19
Message:

The Clear Form button now works for a collection where the infodbtype is sqlite and the sql fielded and/or advanced query boxes are made active in Preferences. Dr Nichols pointed out the Console tab of Firebug which helped with debugging the Javascript as it stopped wherever things failed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/query.dm

    r23614 r23619  
    680680
    681681function clearForm() \{
    682    clearfqf();
    683682_If_("_cgiarga_" eq "sqlq",
    684    clearsqlfqf();
     683   clearsqlfqf(), clearfqf();
    685684)
    686685   clearfqv();
    687686
    688687   if ("_cgiargb_" == "1") \{
    689       clearfqk();
    690       clearfqs();
    691       clearfqc();
     688      if (document.QueryForm.fqk != null) \{clearfqk();\}
     689      if (document.QueryForm.fqs != null) \{clearfqs();\}
     690      if (document.QueryForm.fqs != null) \{clearfqc();\}
    692691_If_("_cgiarga_" eq "sqlq",
    693692      clearsqlfqc();
Note: See TracChangeset for help on using the changeset viewer.