d3b3e61da56f4a9ea90e627e49cdddf73785a597 angie Wed Jul 17 13:12:23 2013 -0700 hgVai's disclaimer note was obscuring the submit button, so I changed itto a dialog box that requires the user to agree before it will submit the query. Then it remembers in the cart that the user clicked agree, so they don't have to click a dialog box before every query. refs #6152 diff --git src/hg/js/ajax.js src/hg/js/ajax.js index fba58eb..a2a2d7c 100644 --- src/hg/js/ajax.js +++ src/hg/js/ajax.js @@ -189,34 +189,34 @@ } else { type = "GET"; } $.ajax({ type: type, async: async, url: loc, data: data, trueSuccess: function () {}, success: catchErrorOrDispatch, error: errFunc, cache: false }); } -function setCartVar(name, value) +function setCartVar(name, value, errFunc, async) { // Asynchronously set a cart variable. - setCartVars( [ name ], [ value ] ); + setCartVars( [ name ], [ value ], errFunc, async ); } function setVarsFromHash(varHash) { // Set all vars in a var hash // If obj is undefined then obj is document! var names = []; var values = []; for (var aVar in varHash) { names.push(aVar); values.push(varHash[aVar]); } if(names.length > 0) { setCartVars(names,values); }