summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-01 09:37:41 -0400
committerUnknwon <u@gogs.io>2015-09-01 09:37:41 -0400
commitdde9ace91b3e492386d4b31996ae970f5c9c10bd (patch)
treec35e85cd05980ade6eb556effe4b35665d9886f0
parent8af094967fb0c09db817999bf8ff209251b183b8 (diff)
downloadgitea-dde9ace91b3e492386d4b31996ae970f5c9c10bd.tar.gz
gitea-dde9ace91b3e492386d4b31996ae970f5c9c10bd.zip
fix rename repo JS
-rw-r--r--public/config.codekit24
-rw-r--r--public/js/gogs.js2
2 files changed, 23 insertions, 3 deletions
diff --git a/public/config.codekit b/public/config.codekit
index bee70c29ce..16d02ec015 100644
--- a/public/config.codekit
+++ b/public/config.codekit
@@ -38,6 +38,15 @@
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0
},
+ "\/css\/gogs.min.css": {
+ "fileType": 16,
+ "ignore": 1,
+ "ignoreWasSetByUser": 0,
+ "inputAbbreviatedPath": "\/css\/gogs.min.css",
+ "outputAbbreviatedPath": "No Output Path",
+ "outputPathIsOutsideProject": 0,
+ "outputPathIsSetByUser": 0
+ },
"\/css\/highlight-8.7\/default.css": {
"fileType": 16,
"ignore": 0,
@@ -164,8 +173,8 @@
},
"\/js\/gogs.js": {
"fileType": 64,
- "ignore": 0,
- "ignoreWasSetByUser": 0,
+ "ignore": 1,
+ "ignoreWasSetByUser": 1,
"inputAbbreviatedPath": "\/js\/gogs.js",
"outputAbbreviatedPath": "\/js\/min\/gogs-min.js",
"outputPathIsOutsideProject": 0,
@@ -239,6 +248,17 @@
"outputPathIsSetByUser": 0,
"processed": 0
},
+ "\/js\/min\/gogs-min.js": {
+ "fileType": 64,
+ "ignore": 1,
+ "ignoreWasSetByUser": 0,
+ "inputAbbreviatedPath": "\/js\/min\/gogs-min.js",
+ "outputAbbreviatedPath": "\/js\/min\/min\/gogs-min-min.js",
+ "outputPathIsOutsideProject": 0,
+ "outputPathIsSetByUser": 0,
+ "outputStyle": 1,
+ "syntaxCheckerStyle": 1
+ },
"\/js\/semantic-2.0.8.min.js": {
"fileType": 64,
"ignore": 0,
diff --git a/public/js/gogs.js b/public/js/gogs.js
index aed4ec7ac6..89e5ef89d7 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -186,7 +186,7 @@ function initRepository() {
if ($('.repository.settings.options').length > 0) {
$('#repo_name').keyup(function () {
var $prompt_span = $('#repo-name-change-prompt');
- if ($(this).val().toLowerCase() != $(this).data('repo-name').toLowerCase()) {
+ if ($(this).val().toString().toLowerCase() != $(this).data('repo-name').toString().toLowerCase()) {
$prompt_span.show();
} else {
$prompt_span.hide();