summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorHarshit Bansal <harshitbansal2015@gmail.com>2019-01-07 01:38:25 +0530
committertechknowlogick <hello@techknowlogick.com>2019-01-06 15:08:25 -0500
commitdd006db5a719b33aef7887faab48718e4b0f2786 (patch)
tree22160be00ff5f73b755dcbb494ce342638ce32d9 /public
parentc42bde719ecf2dd8757453bed18e082d14c1d3fa (diff)
downloadgitea-dd006db5a719b33aef7887faab48718e4b0f2786.tar.gz
gitea-dd006db5a719b33aef7887faab48718e4b0f2786.zip
Display branch name in delete branch confirmation modal. (#5654)
Fixes: #5630.
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 1377e9f36a..70cad04e94 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -561,7 +561,7 @@ function initRepository() {
if ($('.repository.settings.options').length > 0) {
$('#repo_name').keyup(function () {
var $prompt = $('#repo-name-change-prompt');
- if ($(this).val().toString().toLowerCase() != $(this).data('repo-name').toString().toLowerCase()) {
+ if ($(this).val().toString().toLowerCase() != $(this).data('name').toString().toLowerCase()) {
$prompt.show();
} else {
$prompt.hide();
@@ -2071,7 +2071,7 @@ function showDeletePopup() {
}
var dialog = $('.delete.modal' + filter);
- dialog.find('.repo-name').text($this.data('repo-name'));
+ dialog.find('.name').text($this.data('name'));
dialog.modal({
closable: false,