Show an error message if tab loading fails

[?]
Feb 22, 2013, 1:17 PM
4XVYHFDLRJBRBMGFYX72UPSVHRSC5EFRDQXUK4GRENPWGK6DG7FQC

Dependencies

Change contents

  • replacement in src/root/common.tt at line 464
    [2.580][2.580:629]()
    $('#[% tabName %]').load("[% uri %]");
    [2.580]
    [2.629]
    $('#[% tabName %]').load("[% uri %]", function(response, status, xhr) {
    if (status == "error") {
    $('#[% tabName %]').html("<div class='alert alert-error'>Error loading tab: " + xhr.status + " " + xhr.statusText + "</div>");
    }
    });