mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
JobSubmission - remove ng-keydown
removed ng-keydown that would submit the prompt for passwords modal that no longer exists
This commit is contained in:
parent
df8a7be759
commit
dc3dd0db26
@ -241,7 +241,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
||||
html += "<label for=\"" + fld + "\">" + field.label + "</label>\n";
|
||||
html += "<input type=\"password\" ";
|
||||
html += "ng-model=\"" + fld + '" ';
|
||||
html += "ng-keydown=\"keydown($event)\" ";
|
||||
// html += "ng-keydown=\"keydown($event)\" ";
|
||||
html += 'name="' + fld + '" ';
|
||||
html += "class=\"password-field form-control input-sm\" ";
|
||||
html += (field.associated) ? "ng-change=\"clearPWConfirm('" + field.associated + "')\" " : "";
|
||||
@ -262,7 +262,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
||||
html += "<label for=\"" + fld + "\"> " + field.label + "</label>\n";
|
||||
html += "<input type=\"password\" ";
|
||||
html += "ng-model=\"" + fld + '" ';
|
||||
html += "ng-keydown=\"keydown($event)\" ";
|
||||
// html += "ng-keydown=\"keydown($event)\" ";
|
||||
html += 'name="' + fld + '" ';
|
||||
html += "class=\"form-control input-sm\" ";
|
||||
html += "ng-change=\"checkStatus()\" ";
|
||||
@ -323,11 +323,11 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
||||
// $('#password-modal').dialog('open');
|
||||
// $('#password-accept-button').attr({ "disabled": "disabled" });
|
||||
// });
|
||||
scope.keydown = function(e){
|
||||
if(e.keyCode===13){
|
||||
scope.passwordAccept();
|
||||
}
|
||||
};
|
||||
// scope.keydown = function(e){
|
||||
// if(e.keyCode===13){
|
||||
// scope.passwordAccept();
|
||||
// }
|
||||
// };
|
||||
|
||||
// scope.passwordAccept = function() {
|
||||
// if (!scope.password_form.$invalid) {
|
||||
@ -764,7 +764,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
||||
}
|
||||
scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) {
|
||||
//var base = $location.path().replace(/^\//, '').split('/')[0];
|
||||
if(scope.portalMode===false || scope.$parent.portalMode===false){
|
||||
if(scope.portalMode===false ){
|
||||
$location.path('/jobs/' + data.job);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user