Opened 7 years ago

Closed 7 years ago

#8557 closed bug (notabug)

tabs not working on jquery 1.8.1 if attributes are added programmaticaly

Reported by: sathio Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:

Description

  $(function() {


    $('#tabs ul a[href]').attr('href', function(index, href) {
        var param = "lazy=true";
        return href + '&' + param;
    });


    $( "#tabs" ).tabs({
      ajaxOptions: {
        error: function( xhr, status, index, anchor ) {
          $(anchor.hash ).html("Couldn't load this tab. We'll try to fix this as soon as possible. ");
        }
      }
    });
  });

this code used to work until 1.8 now it trows an error

Uncaught Error: Syntax error, unrecognized expression: #container_chart&lazy=true 

Change History (2)

comment:1 Changed 7 years ago by sathio

stupid me, I could just add data: 'lazy=true' into ajaxOptions, please remove

comment:2 Changed 7 years ago by Scott González

Component: ui.coreui.tabs
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.