mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2504 N°3169 N°5102 Correctly disable authentication button for 2.7
This commit is contained in:
@@ -23,7 +23,7 @@ const oOnOauthSuccess = function (event){
|
||||
new Function(item)();
|
||||
});
|
||||
}
|
||||
$('.ibo-oauth-wizard--form--submit').trigger('leave_loading_state.button.itop');
|
||||
$('.ibo-oauth-wizard--form--submit').prop('disabled', false);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -71,7 +71,7 @@ const oOpenSignInWindow = function (url, name){
|
||||
// Function used when the form is submitted
|
||||
|
||||
const oOnFormSubmit = function(){
|
||||
$('.ibo-oauth-wizard--form--submit').trigger('enter_loading_state.button.itop');
|
||||
$('.ibo-oauth-wizard--form--submit').prop('disabled', true);
|
||||
$.post(
|
||||
'{{ sAjaxUri }}',
|
||||
{
|
||||
@@ -88,7 +88,7 @@ const oOnFormSubmit = function(){
|
||||
oOpenSignInWindow(oData.data.authorization_url, 'OAuth authorization')
|
||||
}
|
||||
else{
|
||||
$('.ibo-oauth-wizard--form--submit').trigger('leave_loading_state.button.itop');
|
||||
$('.ibo-oauth-wizard--form--submit').prop('disabled', false);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user