rem: refreshBufferList(g_cq_buffer_current); 
add: refreshBufferList(g_cq_buffer_current, "submitForm"); 
context: function submitForm(theForm, theInput, theMimeType) {    if (! theForm)        return;    refreshBufferList(g_cq_buffer_current);    // copy the selected database to the session cookie    var currDatabase = document.getElementById(g_cq_database_list_id).value;    debug("submitForm: currDatabase = " + currDatabase);    setCookie(g_cq_database_list_id, currDatabase, 30);    // copy current buffer to hidden element    document.getElementById(g_cq_query_input).value = theInput;    debug("submitForm: "+document.getElementById(g_cq_query_input).value);    // set the mime type    if (theMimeType != null) {        debug("submitForm: mimeType = " + theMimeType);        document.getElementById(g_cq_query_mime_type).value = theMimeType;    }    // post the form    theForm.submit();    return;}
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js