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');
}
});
});
});

View file

@ -14,7 +14,7 @@ var rootListUrl = '../AddSeries/RootList';
$(".masterQualitySelector").live('change', function () {
var profileId = $(this).val();
$("#existingSeries").find(".qualitySelector").each(function () {
$("#existingSeriesTab").find(".qualitySelector").each(function () {
$(this).val(profileId);
});
});
@ -45,7 +45,7 @@ $(".addExistingButton").live('click', function () {
function reloadExistingSeries() {
$.get(existingSeriesUrl, function (data) {
$('#existingSeries').html(data);
$('#existingSeriesTab').html(data);
});
}