ldap: minor fix for PR #4398

This commit is contained in:
Unknwon
2017-05-29 23:18:34 -04:00
parent dbb7e5464b
commit a1d411a018
9 changed files with 103 additions and 92 deletions

View File

@@ -254,19 +254,6 @@ function initRepository() {
$prompt.hide();
}
});
// Enable or select internal/external wiki system and issue tracker.
$('.enable-system').change(function () {
if (this.checked) {
$($(this).data('target')).removeClass('disabled');
} else {
$($(this).data('target')).addClass('disabled');
}
});
$('.enable-system-radio').change(function () {
$($(this).data('enable')).removeClass('disabled');
$($(this).data('disable')).addClass('disabled');
});
}
// Branches
@@ -1299,7 +1286,7 @@ $(document).ready(function () {
});
});
// Helpers.
// Helpers
$('.delete-button').click(function () {
var $this = $(this);
$('.delete.modal').modal({
@@ -1335,6 +1322,19 @@ $(document).ready(function () {
});
});
// Check or select on option to enable/disable target region
$('.enable-system').change(function () {
if (this.checked) {
$($(this).data('target')).removeClass('disabled');
} else {
$($(this).data('target')).addClass('disabled');
}
});
$('.enable-system-radio').change(function () {
$($(this).data('enable')).removeClass('disabled');
$($(this).data('disable')).addClass('disabled');
});
// Set anchor.
$('.markdown').each(function () {
var headers = {};