mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
20 lines
770 B
Smarty
20 lines
770 B
Smarty
<script type="text/javascript" src="template-common/lib/jquery.packed.js"></script>
|
|
{literal}
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$option_selected = $('#dblayer option:selected').attr('value');
|
|
if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') {
|
|
$('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
|
|
}
|
|
$('#dblayer').change(function() {
|
|
$db = this;
|
|
if ($db.value=='sqlite' || $db.value=='pdo-sqlite') {
|
|
$('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide();
|
|
} else {
|
|
$('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
{/literal}
|