Automatic form submission on change.

This commit is contained in:
Michal Čihař 2011-08-08 13:24:53 +02:00
parent 51b54c954c
commit 84fda7ff95

View File

@ -3112,12 +3112,19 @@ function PMA_createqTip($elements, content, options)
$elements.qtip($.extend(true, o, options));
}
/**
* Theme selector.
*/
$(document).ready(function() {
/**
* Theme selector.
*/
$('a.themeselect').live('click',function(e) {
window.open(e.target + '?foo=bar', 'themes','left=10,top=20,width=510,height=350,scrollbars=yes,status=yes,resizable=yes');
return false;
});
/**
* Automatic form submission on change.
*/
$('select.autosubmit').change(function(e) {
e.target.form.submit();
});
});