Skip to content
  • Robert Lyon's avatar
    Adjusting the switchbutton plugin (Bug #1396430) · 5a28007d
    Robert Lyon authored
    
    
    1) Stop the callback function firing onload of page
    
    2) Allowing to specify the function by reference so one can have either:
    
      callback_on: function() { },
    
    or
    
      callback_on: "my_function",
    
    3) Allowing the hidden checkbox to still exist in the tab index for
    screenreaders
    
    Change-Id: Ic7a153083446be89eca9f6457b3e05e69cb55a4b
    Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
    5a28007d