return false;
},
+ /**
+ * Switch to another active input sub-form.
+ * This will hide the current form (if any), show the new one, and
+ * update the input type tab selection state.
+ *
+ * @param {String} tag
+ */
switchInputFormTab: function(tag) {
// The one that's current isn't current anymore
$('.input_form_nav_tab.current').removeClass('current');
'class' => 'input_form_nav_tab');
if ($tag == 'status') {
- $attrs['class'] = 'current';
+ $attrs['class'] .= ' current';
}
$this->elementStart('li', $attrs);