Comment #4 on issue 794 by timw.at.work: Can not add screenshot
http://code.google.com/p/reviewboard/issues/detail?id=794

In common.js, it looks like the formDlg function was never finished. The  
function
rbApiCall gets called with 'data' not set.

/*
  * Sends the form data to the server.
  */
function send() {
if(console) console.log("in send", options);
     rbApiCall({
         path: options.path,
         buttons: $("input", self.modalBox("buttons")),
         errorPrefix: "Saving the form failed due to a server error:",
         success: function(rsp) {
if(console) console.log("in send success", rsp);
             checkForErrors(rsp);
         }
     });
}

...

function rbApiCall(options) {
     if (options.buttons) {
         options.buttons.attr("disabled", true);
     }

     $.ajax({
         type: options.type || "POST",
         url: options.url || (SITE_ROOT + "api/json" + options.path),
         data: options.data || {dummy: ""},
         dataType: options.dataType || "json",
         success: options.success,
         error: function(xhr, textStatus, errorThrown) {
...

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to