mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02: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:
@@ -241,7 +241,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
html += "<label for=\"" + fld + "\">" + field.label + "</label>\n";
|
html += "<label for=\"" + fld + "\">" + field.label + "</label>\n";
|
||||||
html += "<input type=\"password\" ";
|
html += "<input type=\"password\" ";
|
||||||
html += "ng-model=\"" + fld + '" ';
|
html += "ng-model=\"" + fld + '" ';
|
||||||
html += "ng-keydown=\"keydown($event)\" ";
|
// html += "ng-keydown=\"keydown($event)\" ";
|
||||||
html += 'name="' + fld + '" ';
|
html += 'name="' + fld + '" ';
|
||||||
html += "class=\"password-field form-control input-sm\" ";
|
html += "class=\"password-field form-control input-sm\" ";
|
||||||
html += (field.associated) ? "ng-change=\"clearPWConfirm('" + field.associated + "')\" " : "";
|
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 += "<label for=\"" + fld + "\"> " + field.label + "</label>\n";
|
||||||
html += "<input type=\"password\" ";
|
html += "<input type=\"password\" ";
|
||||||
html += "ng-model=\"" + fld + '" ';
|
html += "ng-model=\"" + fld + '" ';
|
||||||
html += "ng-keydown=\"keydown($event)\" ";
|
// html += "ng-keydown=\"keydown($event)\" ";
|
||||||
html += 'name="' + fld + '" ';
|
html += 'name="' + fld + '" ';
|
||||||
html += "class=\"form-control input-sm\" ";
|
html += "class=\"form-control input-sm\" ";
|
||||||
html += "ng-change=\"checkStatus()\" ";
|
html += "ng-change=\"checkStatus()\" ";
|
||||||
@@ -323,11 +323,11 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
// $('#password-modal').dialog('open');
|
// $('#password-modal').dialog('open');
|
||||||
// $('#password-accept-button').attr({ "disabled": "disabled" });
|
// $('#password-accept-button').attr({ "disabled": "disabled" });
|
||||||
// });
|
// });
|
||||||
scope.keydown = function(e){
|
// scope.keydown = function(e){
|
||||||
if(e.keyCode===13){
|
// if(e.keyCode===13){
|
||||||
scope.passwordAccept();
|
// scope.passwordAccept();
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
|
|
||||||
// scope.passwordAccept = function() {
|
// scope.passwordAccept = function() {
|
||||||
// if (!scope.password_form.$invalid) {
|
// if (!scope.password_form.$invalid) {
|
||||||
@@ -764,7 +764,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
}
|
}
|
||||||
scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) {
|
scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) {
|
||||||
//var base = $location.path().replace(/^\//, '').split('/')[0];
|
//var base = $location.path().replace(/^\//, '').split('/')[0];
|
||||||
if(scope.portalMode===false || scope.$parent.portalMode===false){
|
if(scope.portalMode===false ){
|
||||||
$location.path('/jobs/' + data.job);
|
$location.path('/jobs/' + data.job);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user