I was creating tabs and what trying to figure out why setting it to 1 always chose the first tab since it wasn't mentioned in the documentation and that everything in javascript is zero based index.
For example:
var tabs = $.ninja.tabs({values: [
{html:"no"},
{html:"yes"}
], value: 1});
Would select "no", and not "yes" as expected.
This was changed easily in the ninjaui code by making "0" the default value and removing the "- 1" in
I was creating tabs and what trying to figure out why setting it to 1 always chose the first tab since it wasn't mentioned in the documentation and that everything in javascript is zero based index.
For example: var tabs = $.ninja.tabs({values: [ {html:"no"}, {html:"yes"} ], value: 1}); Would select "no", and not "yes" as expected.
This was changed easily in the ninjaui code by making "0" the default value and removing the "- 1" in
if (i === options.value - 1) { $tab.select(); }
Under the tabs function.