diff --git a/js/functions.js b/js/functions.js index 9b80619ec6..008dcf2f6e 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3127,4 +3127,20 @@ $(document).ready(function() { $('.autosubmit').change(function(e) { e.target.form.submit(); }); + + /** + * Theme changer. + */ + $('.take_theme').live('click', function(e) { + alert(e.target.nodeName); + var evt = $(e); + var what = evt.target.id; + if (window.opener && window.opener.document.forms['setTheme'].elements['set_theme']) { + window.opener.document.forms['setTheme'].elements['set_theme'].value = what; + window.opener.document.forms['setTheme'].submit(); + window.close(); + return false; + } + return true; + }); }); diff --git a/libraries/Theme.class.php b/libraries/Theme.class.php index 0347ac8bc9..252d554cec 100644 --- a/libraries/Theme.class.php +++ b/libraries/Theme.class.php @@ -321,12 +321,13 @@ class PMA_Theme { echo '
' - .''; + .' (' . htmlspecialchars($this->getVersion()) . ')'; + echo '