aboutsummaryrefslogtreecommitdiff
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index b77b1104..b7770fde 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -212,18 +212,15 @@ function initInstall() {
// Database type change detection.
$("#db_type").change(function () {
var sqliteDefault = 'data/gogs.db';
- var tidbDefault = 'data/gogs_tidb';
var dbType = $(this).val();
- if (dbType === "SQLite3" || dbType === "TiDB") {
+ if (dbType === "SQLite3") {
$('#sql_settings').hide();
$('#pgsql_settings').hide();
$('#sqlite_settings').show();
- if (dbType === "SQLite3" && $('#db_path').val() == tidbDefault) {
+ if (dbType === "SQLite3") {
$('#db_path').val(sqliteDefault);
- } else if (dbType === "TiDB" && $('#db_path').val() == sqliteDefault) {
- $('#db_path').val(tidbDefault);
}
return;
}