Modify

Opened 4 years ago

#7318 new defect

solution for json problem inside the ticketext.js file (tested on trac 0.12)

Reported by: evb Owned by: takanorig
Priority: normal Component: TicketExtPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.12

Description

I did apply following patch to the file ticketext.js to get it working : (see also the other ticket #7296 for another problem when working with trac 0.12)

Line 151 : correction typos

var isProceed = confirm(_("Apply the template to the description.\nThe description will be cleared, are you sure?"));

Line 182 : correction in treating json result

    $.ajax({
        type: "GET",
        url: reqUrl,
        async: false,
        success: function(jsonData){
            var responseData;
            /*if (typeof(jsonData) == "string") {
                responseData = eval("(" + jsonData + ")");
            } else {
                responseData = eval("(" + jsonData.responseText + ")");
            }*/
            responseData = jsonData;
            self.applyTemplate(responseData);
        }
    });

I don't understand how the original code did work once? jsonData.responseText is no member of the object... Or am I missing something here?

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new The owner will remain takanorig.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.