aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-18 12:47:35 -0500
committerUnknwon <u@gogs.io>2017-02-18 12:47:35 -0500
commit21d538a73857e4732dc2060279ee486caa93e921 (patch)
treeb85fe7054dee775de211f1396474c12ecceed6e8 /public/js
parent36f448f47fefe9222a7781063b28d81937053964 (diff)
install: able to enable builtin SSH server (#3773)
Diffstat (limited to 'public/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;
}