mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
fixed password button on survey taker
This commit is contained in:
parent
558cebffe9
commit
68d0655101
@ -548,14 +548,14 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
||||
if (associated !== "undefined") {
|
||||
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("ABC");
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Show");
|
||||
$scope[associated] = '';
|
||||
$scope[form.name + '_form'][associated].$setValidity('awpassmatch', true);
|
||||
}
|
||||
} else {
|
||||
$scope[fld] = '';
|
||||
$("#" + form.name + "_" + fld + "_input").attr("type", "password");
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("ABC");
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Show");
|
||||
if (associated !== "undefined") {
|
||||
$("#" + form.name + "_" + fld + "_input").attr("type", "text");
|
||||
$("#" + form.name + "_" + fld + "_show_input_button").html("Hide");
|
||||
|
@ -589,7 +589,7 @@ function($compile, Rest, GetBasePath, TextareaResize,CreateDialog, GenerateForm,
|
||||
maxlength =(!Empty(question.max)) ? Number(question.max) : "" ;
|
||||
html+= '<div class="input-group">'+
|
||||
'<span class="input-group-btn">'+
|
||||
'<button class="btn btn-default show_input_button" id="'+question.variable +'_show_input_button" aw-tool-tip="Toggle the display of plaintext." aw-tip-placement="top" ng-click="toggleInput("#'+question.variable+'")" data-original-title="" title="">ABC</button>'+
|
||||
'<button class="btn btn-default show_input_button" id="'+question.variable +'_show_input_button" aw-tool-tip="Toggle the display of plaintext." aw-tip-placement="top" ng-click="toggleInput("#'+question.variable+'")" data-original-title="" title="">Show</button>'+
|
||||
'</span>'+
|
||||
'<input id="'+question.variable+'" type="password" ng-model="'+question.variable+'" name="'+question.variable+'" '+
|
||||
'ng-required="'+question.required+'"'+
|
||||
|
Loading…
Reference in New Issue
Block a user