Skip to main content

Search and Top Navigation

#8557 closed bug (notabug)

Opened September 07, 2012 11:01AM UTC

Closed September 07, 2012 11:39AM UTC

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 
Attachments (0)
Change History (2)

Changed September 07, 2012 11:15AM UTC by sathio comment:1

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

Changed September 07, 2012 11:39AM UTC by scottgonzalez comment:2

component: ui.coreui.tabs
resolution: → invalid
status: newclosed