Added jquery tab, accordion to autobind.

made add series page more awsome.
This commit is contained in:
kay.one 2011-12-07 21:30:47 -08:00
commit 5e386a2bc7
10 changed files with 69 additions and 67 deletions

View file

@ -16,10 +16,30 @@
$(this).removeAttr('disabled');
});
//All buttons are jQueryUI buttons
$('button, input[type="button"], input[type="submit"], input[type="reset"]').livequery(function () {
$(this).button();
});
$('.jquery-accordion').livequery(function () {
$(this).accordion({
autoHeight: false,
collapsible: true
});
});
$('.jquery-tabs').livequery(function () {
$(this).tabs({
fx: { opacity: 'toggle' },
select: function (event, ui) {
jQuery(this).css('height', jQuery(this).height());
jQuery(this).css('overflow', 'hidden');
},
show: function (event, ui) {
jQuery(this).css('height', 'auto');
jQuery(this).css('overflow', 'visible');
}
});
});
});