2011-12-01 09:39:11 +03:00
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
//All forms are ajax forms
|
|
|
|
$("form").livequery(function () {
|
|
|
|
|
|
|
|
var options = {
|
|
|
|
type: 'post',
|
|
|
|
resetForm: false
|
|
|
|
};
|
|
|
|
|
|
|
|
$(this).ajaxForm(options);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$('Form button').livequery(function () {
|
|
|
|
$(this).removeAttr('disabled');
|
|
|
|
});
|
|
|
|
|
2011-12-08 08:30:47 +03:00
|
|
|
|
2011-12-01 09:39:11 +03:00
|
|
|
//All buttons are jQueryUI buttons
|
|
|
|
$('button, input[type="button"], input[type="submit"], input[type="reset"]').livequery(function () {
|
|
|
|
$(this).button();
|
|
|
|
});
|
|
|
|
|
2011-12-08 08:30:47 +03:00
|
|
|
$('.jquery-accordion').livequery(function () {
|
|
|
|
$(this).accordion({
|
|
|
|
autoHeight: false,
|
|
|
|
collapsible: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.jquery-tabs').livequery(function () {
|
2012-03-01 03:51:31 +03:00
|
|
|
$(this).show();
|
|
|
|
|
2011-12-08 08:30:47 +03:00
|
|
|
$(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');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2011-12-01 09:39:11 +03:00
|
|
|
});
|