Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature 1460 : Customize form installation depending on database engine
- sqlite is proposed by default if severals database engine are available (cf conf) - sqlite is proposed before pdo-sqlite - remove host, user and password for sqlite git-svn-id: http://piwigo.org/svn/trunk@4985 68402e56-0260-453c-a942-63ccdbb3a9ee
- Loading branch information
nikrou
committed
Feb 27, 2010
1 parent
4986d62
commit d4287e2
Showing
5 changed files
with
68 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters