Revision 038383b1 ui/templates/standard.html

b/ui/templates/standard.html
37 37
        </div>
38 38
        <div class="action_error" align="center">
39 39
            {% trans "<span class='orange'>Error</span> on" %} <span class="action">error action</span>
40
            <span class="code"></span>            
40 41
            <span class="message"></span>
41 42
            <button class="details">Details</button>
42 43
        </div>
......
150 151

  
151 152
$("div.action_error .details").live('click', function(){
152 153
    // remove the action from the pending list
153
    ajax_error($(this).parent().children('.message').text());
154
    ajax_error($(this).parent().children('.code').text(), undefined, $(this).parent().children('.action').text(), $(this).parent().children('.message').text());
154 155
    $(this).parent().hide();
155 156
});
156 157

  
......
258 259
}
259 260

  
260 261
// indicate that the requested action was not completed
261
function display_failure(serverID, status, action) {
262
function display_failure(status, serverID, action, responseText) {
262 263
    $('#'+serverID+ ' .spinner').hide();
263 264
    $('#'+serverID+ ' .action_error .action').text(action);
264
    $('#'+serverID+ ' .action_error .message').text(status);
265
    $('#'+serverID+ ' .action_error .code').text(status);
266
    $('#'+serverID+ ' .action_error .message').text(responseText);
265 267
    $('#'+serverID+ ' .action_error').show();
266 268
    
267 269
}

Also available in: Unified diff