migration: migrated to jquery 3.7
This commit is contained in:
parent
11a5f8c5cd
commit
0a0f79b2c6
38 changed files with 164 additions and 147 deletions
|
|
@ -96,7 +96,7 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$('.toggle-plugin').click(function(e){
|
||||
$('.toggle-plugin').on('click', function(e){
|
||||
var auth_plugins_input = $('#auth_plugins');
|
||||
var elems = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
if(detected_mode){
|
||||
$(modes_select).select2("val", mimetype);
|
||||
$(modes_select).change();
|
||||
$(modes_select).trigger('change');
|
||||
setCodeMirrorMode(myCodeMirror, detected_mode);
|
||||
}
|
||||
|
||||
|
|
@ -126,7 +126,7 @@
|
|||
$.Topic('/notifications').publish(alertMessage[0]);
|
||||
}
|
||||
else{
|
||||
$('#eform').submit();
|
||||
$('#eform').trigger('submit');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -108,6 +108,6 @@
|
|||
});
|
||||
|
||||
$('.reset-inheritance').on('click', function(e){
|
||||
$('#inherit_global_issuetracker').prop('checked', false).change();
|
||||
$('#inherit_global_issuetracker').prop('checked', false).trigger('change');
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ executeTask = function() {
|
|||
|
||||
$(displayHtml).append(data);
|
||||
$('#results').html(displayHtml);
|
||||
btn.removeAttr('disabled');
|
||||
btn.prop('disabled', false);
|
||||
btn.removeClass('disabled');
|
||||
};
|
||||
ajaxGET(url, success, null);
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ checkCommits = function() {
|
|||
};
|
||||
|
||||
btn.html('Strip');
|
||||
btn.removeAttr('disabled');
|
||||
btn.prop('disabled', false);
|
||||
btn.removeClass('disabled');
|
||||
btn.attr('onclick','strip();return false;');
|
||||
ajaxPOST(url, postData, success, null);
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ import json
|
|||
setAIFieldsActive(this.checked);
|
||||
});
|
||||
|
||||
$updateModelsBtn.click(function () {
|
||||
$updateModelsBtn.on('click', function () {
|
||||
const $apiKey = $('#rhodecode_ai_api_key input');
|
||||
|
||||
if (!$apiKey.val()) {
|
||||
|
|
@ -211,7 +211,7 @@ import json
|
|||
|
||||
});
|
||||
|
||||
$form.submit(function () {
|
||||
$form.on('submit', function () {
|
||||
let $f = $(this);
|
||||
|
||||
let $tmpEnabled = $f.find(':disabled');
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$('#check_for_update').click(function(e){
|
||||
$('#check_for_update').on('click', function(e){
|
||||
$('#update_notice').show();
|
||||
$('#update_notice').load("${h.route_path('admin_settings_system_update', _query={'ver': request.GET.get('ver')})}");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue