diff options
author | plegall <plg@piwigo.org> | 2011-09-08 10:46:35 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-09-08 10:46:35 +0000 |
commit | ff46db430bd2aa265c16bbd6ff17e0bae710d332 (patch) | |
tree | 32b7a7cbf4a8c01901bb00a2592dd450c047f717 /admin/themes/default | |
parent | 9252e5cb2d0cb9a5b2943049e8bb813285d40cd3 (diff) |
feature 2431: only keep MySQL on installation form
git-svn-id: http://piwigo.org/svn/trunk@12103 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default')
-rw-r--r-- | admin/themes/default/template/install.tpl | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/admin/themes/default/template/install.tpl b/admin/themes/default/template/install.tpl index 2988cfd42..454a81904 100644 --- a/admin/themes/default/template/install.tpl +++ b/admin/themes/default/template/install.tpl @@ -26,31 +26,6 @@ {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(); - } - if ($option_selected=='mysql') { - $('#experimentalDbEngines').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(); - } - - if ($db.value=='mysql') { - $('#experimentalDbEngines').hide(); - } - else { - $('#experimentalDbEngines').show(); - } - }); - }); - $(document).ready(function() { $("a.externalLink").click(function() { window.open($(this).attr("href")); @@ -248,34 +223,6 @@ jQuery().ready(function(){ldelim} <legend>{'Database configuration'|@translate}</legend> <table class="table2"> - {if count($F_DB_ENGINES)>1} - <tr> - <td style="width: 30%;" class="fieldname">{'Database type'|@translate}</td> - <td> - <select name="dblayer" id="dblayer"> - {foreach from=$F_DB_ENGINES key=k item=v} - <option value="{$k}" - {if $k==$F_DB_LAYER and $v.available} selected="selected"{/if} - {if !$v.available} disabled="disabled"{/if} - >{$v.label}</option> - {/foreach} - </select> - </td> - <td class="fielddesc">{'The type of database your piwigo data will be store in'|@translate}</td> - {else} - <td colspan="3"> - <input type="hidden" name="dbengine" value="{$F_DB_LAYER}"> - </td> - {/if} - </tr> - <tr id="experimentalDbEngines"> - <td colspan="3"> -<div class="warnings"> - {'SQLite and PostgreSQL are currently in experimental state.'|@translate} - <a href="http://piwigo.org/forum/viewtopic.php?id=15927" class="externalLink">{'Learn more'|@translate}</a> -</div> - </td> - </tr> <tr> <td style="width: 30%;" class="fieldname">{'Host'|@translate}</td> <td><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> |