web/public/javascripts/main.js
// submit synchronously to a provided URL (action) and parameters.
submit synchronously to a provided URL (action) and parameters.
submit synchronously to a provided URL ( action ) and parameters .
function submit(method, action, parameters) {
  var form = $('<form></form>');
  form.attr("method", method);
  form.attr("action", action);
  if (parameters)
    addParams(form, parameters)
  $(document.body).append(form);
  form.submit();
}
function submit ( method , action , parameters ) { var form = $ ( '<form></form>' ) ; form . attr ( "method" , method ) ; form . attr ( "action" , action ) ; if ( parameters ) addParams ( form , parameters ) $ ( document . body ) . append ( form ) ; form . submit ( ) ; }
submit synchronously to a provided URL (action) and parameters.
submit synchronously to a provided URL ( action ) and parameters .